2.2.7.95 MILCMD_IMAGEBRUSH

This message updates all properties of a resource of type TYPE_IMAGEBRUSH. This resource represents a brush that fills an area by tiling an image.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

messageSize

controlCode

targetResource

Opacity

...

Viewport (32 bytes)

...

...

Viewbox (32 bytes)

...

...

CacheInvalidationThresholdMinimum

...

CacheInvalidationThresholdMaximum

...

hOpacityAnimations

hTransform

hRelativeTransform

ViewportUnits

ViewboxUnits

hViewportAnimations

hViewboxAnimations

Stretch

TileMode

AlignmentX

AlignmentY

CachingHint

hImageSource

messageSize (4 bytes): A 32-bit unsigned integer. The size of this message in bytes. The value of this field MUST be set to 0x00000098.

controlCode (4 bytes): A 32-bit unsigned integer containing the control code for this message. The value of this field MUST be equal to 0x0000008D.

targetResource (4 bytes): A 32-bit unsigned integer. This field MUST be set to a valid resource handle referencing a resource of type TYPE_IMAGEBRUSH. This handle identifies the resource that is the target for this message.

Opacity (8 bytes): A 64-bit floating-point number. The degree of opacity of this brush.

Viewport (32 bytes): A MilRect structure. The position and dimensions of the base tile for this tile brush.

Viewbox (32 bytes): A MilRect structure. The position and dimensions of the content in this tile brush tile.

CacheInvalidationThresholdMinimum (8 bytes): A 64-bit floating-point number. The cache invalidation threshold minimum value for this tile brush. This value is used to determine when this tile brush object MUST be regenerated due to changes in scale.

CacheInvalidationThresholdMaximum (8 bytes): A 64-bit floating-point number. The cache invalidation threshold maximum value for this tile brush. This value is used to determine when this tile brush object MUST be regenerated due to changes in scale.

hOpacityAnimations (4 bytes): A 32-bit unsigned integer. The value of this field MUST either be set to zero or set to a valid resource handle referencing a resource of type TYPE_DOUBLERESOURCE. If the value of this field is nonzero, the referenced resource animates the value of the Opacity property; otherwise, the target resource opacity is set to the value of the Opacity field.

hTransform (4 bytes): A 32-bit unsigned integer. The value of this field MUST either be set to zero or set to a valid resource handle referencing a resource of type TYPE_TRANSLATETRANSFORM, TYPE_SCALETRANSFORM, TYPE_MATRIXTRANSFORM, or TYPE_TRANSFORMGROUP. This resource represents the transformation that is applied to the brush. This transformation is applied after the brush's output has been mapped and positioned. If this field is zero, no transformation is applied to the brush output.

hRelativeTransform (4 bytes): A 32-bit unsigned integer. The value of this field MUST either be set to zero or set to a valid resource handle referencing a resource of type TYPE_TRANSLATETRANSFORM, TYPE_SCALETRANSFORM, TYPE_MATRIXTRANSFORM, or TYPE_TRANSFORMGROUP. This resource represents the transformation that is applied to the brush using relative coordinates. If this field is zero, no transformation is applied to the brush output.

ViewportUnits (4 bytes): A MilBrushMappingMode enumeration. Specifies whether the value of the Viewport field, which indicates the size and position of the tile brush base tile, is relative to the size of the output area.

ViewboxUnits (4 bytes): A MilBrushMappingMode enumeration. Specifies whether the Viewbox field value is relative to the bounding box of the tile brush contents or whether the value is absolute.

hViewportAnimations (4 bytes): A 32-bit unsigned integer. The value of this field MUST either be set to zero or set to a valid resource handle referencing a resource of type TYPE_RECTRESOURCE. If the value of this field is nonzero, the referenced resource animates the value of the Viewport property; otherwise, the resource viewport is set to the rectangle in the viewport field.

hViewboxAnimations (4 bytes): A 32-bit unsigned integer. The value of this field MUST either be set to zero or set to a valid resource handle referencing a resource of type TYPE_RECTRESOURCE. If the value of this field is nonzero, the referenced resource animates the value of the Viewbox property; otherwise, the resource viewbox is set to the rectangle in the viewbox message.

Stretch (4 bytes): A MilStretch enumeration. Specifies how the content of this tile brush stretches to fit its tiles.

TileMode (4 bytes): A MilTileMode enumeration. Specifies how a TileBrush fills the area to be painted if the base tile is smaller than the output area.

AlignmentX (4 bytes): A MilHorizontalAlignment enumeration. The horizontal alignment of content in the tile brush base tile.

AlignmentY (4 bytes): A MilVerticalAlignment enumeration. The vertical alignment of content in the tile brush base tile.

CachingHint (4 bytes): A MilCachingHint enumeration. The caching hint for this tile brush.

hImageSource (4 bytes): A 32-bit unsigned integer. The value of this field MUST be set either to zero or to a valid resource handle referencing a resource of type TYPE_BITMAPSOURCE, TYPE_CACHEDVISUALIMAGE, or TYPE_GDISPRITEBITMAP. This resource represents the image displayed by this image brush. If this field is zero, nothing is rendered for the target resource.