2.2.1.5 EmfPlusImageAttributes Object

The EmfPlusImageAttributes object specifies how bitmap image colors are manipulated during rendering.


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

Version

Reserved1

WrapMode

ClampColor

ObjectClamp

Reserved2

Version (4 bytes): An EmfPlusGraphicsVersion object (section 2.2.2.19) that specifies the version of operating system graphics that was used to create this object.

Reserved1 (4 bytes): A field that is not used and MUST be ignored.

WrapMode (4 bytes): An unsigned integer that specifies how to handle edge conditions with a value from the WrapMode enumeration (section 2.1.1.33).

ClampColor (4 bytes): An EmfPlusARGB object (section 2.2.2.1) that specifies the edge color to use when the WrapMode value is WrapModeClamp. This color is visible when the source rectangle processed by an EmfPlusDrawImage record (section 2.3.4.8) is larger than the image itself.

ObjectClamp (4 bytes): A signed integer that specifies the object clamping behavior. It is not used until this object is applied to an image being drawn. This value MUST be one of the values defined in the following table.

Value

Meaning

RectClamp

0x00000000

The object is clamped to a rectangle.

BitmapClamp

0x00000001

The object is clamped to a bitmap.

Reserved2 (4 bytes): A value that SHOULD be set to zero and MUST be ignored upon receipt.

See section 2.2.1 for the specification of additional graphics objects.