TextureBrush.TextureBrush
TextureBrush(Image)
Initializes a new instance of the TextureBrush
class that uses the specified image.
public TextureBrush(Image bitmap)
Parameter | Type | Description |
---|
bitmap | Image | The Image object with which this TextureBrush object fills interiors. |
Exceptions
exception | condition |
---|
ArgumentNullException | The bitmap is null. |
See Also
TextureBrush(Image, WrapMode)
Initializes a new instance of the TextureBrush
class that uses the specified image and wrap mode.
public TextureBrush(Image image, WrapMode wrapMode)
Parameter | Type | Description |
---|
image | Image | The image. |
wrapMode | WrapMode | A WrapMode enumeration that specifies how this TextureBrush object is tiled. |
Exceptions
exception | condition |
---|
ArgumentNullException | The image is null. |
See Also
TextureBrush(Image, WrapMode, RectangleF)
Initializes a new instance of the TextureBrush
class that uses the specified image, wrap mode, and bounding rectangle.
public TextureBrush(Image image, WrapMode wrapMode, RectangleF dstRect)
Parameter | Type | Description |
---|
image | Image | The image. |
wrapMode | WrapMode | A WrapMode enumeration that specifies how this TextureBrush object is tiled. |
dstRect | RectangleF | A RectangleF structure that represents the bounding rectangle for this TextureBrush object. |
Exceptions
exception | condition |
---|
ArgumentNullException | The image is null. |
See Also
TextureBrush(Image, RectangleF)
Initializes a new instance of the TextureBrush
class that uses the specified image, and bounding rectangle.
public TextureBrush(Image image, RectangleF dstRect)
Parameter | Type | Description |
---|
image | Image | The Image object with which this TextureBrush object fills interiors. |
dstRect | RectangleF | A RectangleF structure that represents the bounding rectangle for this TextureBrush object. |
Exceptions
exception | condition |
---|
ArgumentNullException | The image is null. |
See Also
TextureBrush(Image, RectangleF, ImageAttributes)
Initializes a new instance of the TextureBrush
class that uses the specified image, bounding rectangle, and image attributes.
public TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr)
Parameter | Type | Description |
---|
image | Image | The Image object with which this TextureBrush object fills interiors. |
dstRect | RectangleF | A RectangleF structure that represents the bounding rectangle for this TextureBrush object. |
imageAttr | ImageAttributes | An ImageAttributes object that contains additional information about the image used by this TextureBrush object. |
Exceptions
exception | condition |
---|
ArgumentNullException | The image is null. |
See Also