位图对象元素
- Last UpdatedSep 24, 2024
- 1 minute read
可以为位图对象指定以下元素。
|
元素 |
描述 |
|---|---|
|
标题 |
位图对象名。可选。 |
|
FillColor |
位图对象的内部 RGB 颜色。包含一个颜色元素。缺省值为 rgb(0, 0, 0)。 |
|
SourceImage |
位图文件的路径。缺省值为空。 |
|
透明 |
透明色的 RGB 颜色。缺省值为 rgb(0, 255, 0)。 |
|
笔 |
定义位图对象周围的线条。 |
|
动画链接 |
可选的动画链接列表。 |
|
维数 |
对象的位置和大小。元素为 top、left、width、height。top、left、width 和 height 值以像素为单位。生成的坐标必须在 -32000 到 +32000 之间。width 和 height 都不能为 0。必需。 如果为 Dimension 元素指定了无效的值或该元素缺少值,则不会创建对象。 |
示例:
<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>
示例:
<Bitmap>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
<SourceImage>C:\MyPictures\hello.jpg</SourceImage>
</Bitmap>
SourceImage 节点为空的示例:
<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>
最简示例:
<Bitmap>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
</Bitmap>