TextureBrush class
Applies to: desktop apps only
The TextureBrush class defines a Brush object that contains an Image object that is used for the fill. The fill image can be transformed by using the local Matrix object contained in the Brush object.
Members
The TextureBrush class inherits from Brush. TextureBrush also has these types of members:
Constructors
The TextureBrush class has these constructors.
| Constructor | Description |
|---|---|
| TextureBrush::TextureBrush(Image*,Rect&,ImageAttributes*) |
Creates a TextureBrush object based on an image, a defining rectangle, and a set of image properties. |
| TextureBrush::TextureBrush(Image*,RectF&,ImageAttributes*) |
Creates a TextureBrush object based on an image, a defining rectangle, and a set of image properties. |
| TextureBrush::TextureBrush(Image*,WrapMode) |
Creates a TextureBrush object based on an image and a wrap mode. The size of the brush defaults to the size of the image, so the entire image is used by the brush. |
| TextureBrush::TextureBrush(Image*,WrapMode,INT,INT,INT,INT) |
Creates a TextureBrush object based on an image, a wrap mode, and a defining set of coordinates. |
| TextureBrush::TextureBrush(Image*,WrapMode,REAL,REAL,REAL,REAL) |
Creates a TextureBrush object based on an image, a wrap mode, and a defining set of coordinates. |
| TextureBrush::TextureBrush(Image*,WrapMode,Rect&) |
Creates a TextureBrush object based on an image, a wrap mode, and a defining rectangle. |
| TextureBrush::TextureBrush(Image*,wrapMode,RectF&) |
Creates a TextureBrush object based on an image, a wrap mode, and a defining rectangle. |
Methods
The TextureBrush class has these methods.
| Method | Description |
|---|---|
| TextureBrush::GetImage |
The TextureBrush::GetImage method gets a pointer to the Image object that is defined by this texture brush. |
| TextureBrush::GetTransform |
The TextureBrush::GetTransform method gets the transformation matrix of this texture brush. |
| TextureBrush::GetWrapMode |
The TextureBrush::GetWrapMode method gets the wrap mode currently set for this texture brush. |
| TextureBrush::MultiplyTransform |
The TextureBrush::MultiplyTransform method updates this brush's transformation matrix with the product of itself and another matrix. |
| TextureBrush::ResetTransform |
The TextureBrush::ResetTransform method resets the transformation matrix of this texture brush to the identity matrix. This means that no transformation takes place. |
| TextureBrush::RotateTransform |
The TextureBrush::RotateTransform method updates this texture brush's current transformation matrix with the product of itself and a rotation matrix. |
| TextureBrush::ScaleTransform |
The TextureBrush::ScaleTransform method updates this texture brush's current transformation matrix with the product of itself and a scaling matrix. |
| TextureBrush::SetTransform |
The TextureBrush::SetTransform method sets the transformation matrix of this texture brush. |
| TextureBrush::SetWrapMode |
The TextureBrush::SetWrapMode method sets the wrap mode of this texture brush. |
| TextureBrush::TranslateTransform |
The TextureBrush::TranslateTransform method updates this brush's current transformation matrix with the product of itself and a translation matrix. |
Send comments about this topic to Microsoft
Build date: 3/6/2012