Object PmgRasterImage (Raster image)
This object serves for displaying images with raster (PNG, JPG, GIF, TIF, BMP ...
) and vector (SVG, WMF
The vector SVG graphic is rendered as vector, but after that it is processed the same way as raster graphic. The advantage of vector graphic is thar the original image redimensioning does not reduce the image quality keeping the image "nice". Therefore all images supplied with the PROMOTIC system are in SVG format.
For the designer, creating the pictures to fit his needs it may be easier to make for example PNG or JPG format images.
- transparency of entire image (see the "Enable opacity
- picture slit display (see the "Crop image
object doesn't include the data itself from the file, it is only the reference to the file. The designer must ensure so that the corresponding file is always accessible by the application - by correctly entering the filename and setting the path to the file. It is recommended to use the files located on #pmres:
This object adopts properties and methods of the PmgObject
Properties and methods:
|ColorBg|| Background color|
|ColorItem|| Light color|
|Rotation|| Image rotation and flip|
|Src|| The file name with the path to the file with the picture|
|Object|| General information about the object|
|Content|| Content of the Pmg object in the XML form|
|Position|| Setting the position, width and height of the Pmg object|
|Variables|| List and configuration of user defined Pmg object variables|
|Events|| Algorithms definition for the object events|
|Methods|| Definition of designer's method of the Pmg object|
|Image|| Image properties.|
: Object name changed: PmiRasterImage
: Fixed bug
: The transparency defined of the "Opacity level
" configurator was sometimes rendered incorrectly.
: If the "Size
" configurator was set to "Over parent"
, then the PNG
format image did not display correctly on the Web.