ITextureBrush class

ITextureBrush class

Defines brush interface that uses an image to fill the interior of a shape.

The ITextureBrush type exposes the following members:

Properties

PropertyDescription
imageGets or sets the image used by the brush.
opacityGet opacity value in a color transform matrix.
image_areaSpecifies the portion of the image used by the brush.
If it equals RectangleF.Empty then the whole image will be used.
Coordinates are in pixels.
color_mapThe number of elements must be even. Every even element is old color. Every odd element is new color.
transformation_matrixGet the transform. The transform defines a local geometric transform for this brush.
spread_modeGets or sets the SpreadMode mode. SpreadMode mode specifies how a texture or gradient is tiled
when it is smaller than the area being filled.
typeGets type of brush as BrushType.
supports_shaderChecks if the brush supports a shader.

Methods

MethodDescription
to_nativeConverts the brush to a native representation.

See Also