public final class TextureBrush extends TransformBrush
Each property of the TextureBrush
class is a Brush
object that uses an image to fill the interior of a shape. This class cannot be inherited.
Constructor and Description |
---|
TextureBrush(Image image)
Initializes a new instance of the
TextureBrush class that uses the specified image. |
TextureBrush(Image image,
int wrapMode)
Initializes a new instance of the
TextureBrush class that uses the specified image and wrap mode. |
TextureBrush(Image image,
int wrapMode,
Rectangle destinationRectangle)
Initializes a new instance of the
TextureBrush class that uses the specified image, wrap mode, and bounding rectangle. |
TextureBrush(Image image,
int wrapMode,
RectangleF destinationRectangle)
Initializes a new instance of the
TextureBrush class that uses the specified image, wrap mode, and bounding rectangle. |
TextureBrush(Image image,
Rectangle destinationRectangle)
Initializes a new instance of the
TextureBrush class that uses the specified image and bounding rectangle. |
TextureBrush(Image image,
RectangleF destinationRectangle)
Initializes a new instance of the
TextureBrush class that uses the specified image and bounding rectangle. |
TextureBrush(Image image,
RectangleF destinationRectangle,
ImageAttributes imageAttributes)
Initializes a new instance of the
TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
TextureBrush(Image image,
Rectangle destinationRectangle,
ImageAttributes imageAttributes)
Initializes a new instance of the
TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
Modifier and Type | Method and Description |
---|---|
Image |
getImage()
Gets the
Image object associated with this TextureBrush object. |
ImageAttributes |
getImageAttributes()
|
RectangleF |
getImageRectangle()
Gets the
Rectangle associated with this TextureBrush . |
getTransform, getWrapMode, isTransformChanged, multiplyTransform, multiplyTransform, resetTransform, rotateTransform, rotateTransform, scaleTransform, scaleTransform, setTransform, setWrapMode, translateTransform, translateTransform
deepClone, getOpacity, setOpacity
dispose, getDisposed
public TextureBrush(Image image)
Initializes a new instance of the TextureBrush
class that uses the specified image.
image
- The Image
object with which this TextureBrush
object fills interiors.public TextureBrush(Image image, int wrapMode)
Initializes a new instance of the TextureBrush
class that uses the specified image and wrap mode.
image
- The Image
object with which this TextureBrush
object fills interiors.wrapMode
- A WrapMode
enumeration that specifies how this TextureBrush
object is tiled.public TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)
Initializes a new instance of the TextureBrush
class that uses the specified image, wrap mode, and bounding rectangle.
image
- The Image
object with which this TextureBrush
object fills interiors.wrapMode
- A WrapMode
enumeration that specifies how this TextureBrush
object is tiled.destinationRectangle
- A RectangleF
structure that represents the bounding rectangle for this TextureBrush
object.public TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)
Initializes a new instance of the TextureBrush
class that uses the specified image, wrap mode, and bounding rectangle.
image
- The Image
object with which this TextureBrush
object fills interiors.wrapMode
- A WrapMode
enumeration that specifies how this TextureBrush
object is tiled.destinationRectangle
- A Rectangle
structure that represents the bounding rectangle for this TextureBrush
object.public TextureBrush(Image image, RectangleF destinationRectangle)
Initializes a new instance of the TextureBrush
class that uses the specified image and bounding rectangle.
image
- The Image
object with which this TextureBrush
object fills interiors.destinationRectangle
- A RectangleF
structure that represents the bounding rectangle for this TextureBrush
object.public TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)
Initializes a new instance of the TextureBrush
class that uses the specified image, bounding rectangle, and image attributes.
image
- The Image
object with which this TextureBrush
object fills interiors.destinationRectangle
- A RectangleF
structure that represents the bounding rectangle for this TextureBrush
object.imageAttributes
- An ImageAttributes
object that contains additional information about the image used by this TextureBrush
object.public TextureBrush(Image image, Rectangle destinationRectangle)
Initializes a new instance of the TextureBrush
class that uses the specified image and bounding rectangle.
image
- The Image
object with which this TextureBrush
object fills interiors.destinationRectangle
- A Rectangle
structure that represents the bounding rectangle for this TextureBrush
object.public TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)
Initializes a new instance of the TextureBrush
class that uses the specified image, bounding rectangle, and image attributes.
image
- The Image
object with which this TextureBrush
object fills interiors.destinationRectangle
- A Rectangle
structure that represents the bounding rectangle for this TextureBrush
object.imageAttributes
- An ImageAttributes
object that contains additional information about the image used by this TextureBrush
object.public final Image getImage()
Gets the Image
object associated with this TextureBrush
object.
Image
object that represents the image with which this TextureBrush
object fills shapes.public final ImageAttributes getImageAttributes()
Gets the ImageAttributes
(TextureBrush.getImageAttributes()
) associated with this TextureBrush
.
ImageAttributes
(TextureBrush.getImageAttributes()
).public final RectangleF getImageRectangle()
Gets the Rectangle
associated with this TextureBrush
.
Rectangle
.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.