Bitmap object elements
- Last UpdatedJul 26, 2024
- 1 minute read
The following elements can be specified for a bitmap object.
|
Elements |
Description |
|---|---|
|
Title |
Bitmap object name. Optional. |
|
FillColor |
Interior RGB color of the bitmap object. Contains a color element. Default is rgb(0, 0, 0). |
|
SourceImage |
Path to the bitmap file. Default is Null. |
|
Transparent |
RGB color for transparent color. Default is rgb(0, 255, 0). |
|
Pen |
Defines the line around the bitmap object. |
|
AnimationLinks |
Optional animation links list. |
|
Dimension |
Location and size of an object. Elements are top, left, width, height. Top, left, width, and height values are pixels. The resulting coordinates must be within -32000 and +32000. Both width and height cannot be zero. Required. An object is not created if the Dimension element is assigned invalid values or is missing values. |
Example:
<Bitmap>
<Title>bitmap1</Title>
<Pen>
<PenColor><Name>Black</Name></PenColor>
<PenWidth>1</PenWidth>
<PenStyle>Solid</PenStyle>
</Pen>
<Dimension>
<Left>100</Left>
<Top>50</Top>
<Width>270</Width>
<Height>80</Height>
</Dimension>
<FillColor>
<R>128</R>
<G>128</G> <
B>128</B>
</FillColor>
<Transparent>
<R>0</R> <G>128</G> <B>255</B>
</Transparent>
<SourceImage>C:\MyPictures\hello.jpg</SourceImage>
<AnimationLinks>
</AnimationLinks>
</Bitmap>
Example:
<Bitmap>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
<SourceImage>C:\MyPictures\hello.jpg</SourceImage>
</Bitmap>
Example with empty SourceImage node:
<Bitmap>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
<FillColor>
<R>128</R> <G>128</G> <B>128</B>
</FillColor>
<SourceImage></SourceImage>
</Bitmap>
Minimal example:
<Bitmap>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
</Bitmap>