TextureBrush

Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.Brush, com.aspose.imaging.brushes.TransformBrush

public final class TextureBrush extends TransformBrush

Aspose.Imaging.Brushes.TextureBrush 类的每个属性都是使用图像填充形状内部的 Aspose.Imaging.Brush 对象。此类不可被继承。

构造函数

构造函数描述
TextureBrush(Image image)初始化使用指定图像的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。
TextureBrush(Image image, int wrapMode)初始化使用指定图像和包装模式的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。
TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)初始化使用指定图像、边界矩形和图像属性的 TextureBrush 类的新实例。
TextureBrush(Image image, Rectangle destinationRectangle)初始化使用指定图像和边界矩形的 TextureBrush 类的新实例。
TextureBrush(Image image, RectangleF destinationRectangle)初始化使用指定图像和边界矩形的 TextureBrush 类的新实例。
TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)初始化使用指定图像、包装模式和边界矩形的 TextureBrush 类的新实例。
TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)初始化使用指定图像、包装模式和边界矩形的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。
TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)初始化使用指定图像、边界矩形和图像属性的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。

方法

方法描述
getImage()获取与此 com.aspose.imaging.brushes.TextureBrush 对象关联的 com.aspose.imaging.Image 对象。
getImageAttributes()获取此 TextureBrush 关联的 ImageAttributes
getImageRectangle()获取此 TextureBrush 关联的 Rectangle

TextureBrush(Image image)

public TextureBrush(Image image)

初始化使用指定图像的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageAspose.Imaging.Brushes.TextureBrush 对象用于填充内部的 Aspose.Imaging.Image 对象。

TextureBrush(Image image, int wrapMode)

public TextureBrush(Image image, int wrapMode)

初始化使用指定图像和包装模式的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageAspose.Imaging.Brushes.TextureBrush 对象用于填充内部的 Aspose.Imaging.Image 对象。
wrapModeint一个指定此 Aspose.Imaging.Brushes.TextureBrush 对象平铺方式的 Aspose.Imaging.WrapMode 枚举。

TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)

public TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)

初始化使用指定图像、边界矩形和图像属性的 TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageImage 对象用于填充内部的 TextureBrush 对象。
destinationRectangleRectangle一个表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。
imageAttributesImageAttributes一个包含此 TextureBrush 对象使用的图像的附加信息的 ImageAttributes 对象。

TextureBrush(Image image, Rectangle destinationRectangle)

public TextureBrush(Image image, Rectangle destinationRectangle)

初始化使用指定图像和边界矩形的 TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageImage 对象用于填充内部的 TextureBrush 对象。
destinationRectangleRectangle一个表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。

TextureBrush(Image image, RectangleF destinationRectangle)

public TextureBrush(Image image, RectangleF destinationRectangle)

初始化使用指定图像和边界矩形的 TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageImage 对象用于填充内部的 TextureBrush 对象。
destinationRectangleRectangleF一个表示此 TextureBrush 对象的边界矩形的 RectangleF 结构。

TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)

public TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)

初始化使用指定图像、包装模式和边界矩形的 TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageImage 对象用于填充内部的 TextureBrush 对象。
wrapModeint一个指定此 TextureBrush 对象平铺方式的 WrapMode 枚举。
destinationRectangleRectangle一个表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。

TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)

public TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)

初始化使用指定图像、包装模式和边界矩形的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageAspose.Imaging.Brushes.TextureBrush 对象用于填充内部的 Aspose.Imaging.Image 对象。
wrapModeint一个指定此 Aspose.Imaging.Brushes.TextureBrush 对象平铺方式的 Aspose.Imaging.WrapMode 枚举。
destinationRectangleRectangleF一个表示此 Aspose.Imaging.Brushes.TextureBrush 对象的边界矩形的 Aspose.Imaging.RectangleF 结构。

TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)

public TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)

初始化使用指定图像、边界矩形和图像属性的 Aspose.Imaging.Brushes.TextureBrush 类的新实例。

Parameters:

参数类型描述
imageImageAspose.Imaging.Brushes.TextureBrush 对象用于填充内部的 Aspose.Imaging.Image 对象。
destinationRectangleRectangleF一个表示此 Aspose.Imaging.Brushes.TextureBrush 对象的边界矩形的 Aspose.Imaging.RectangleF 结构。
imageAttributesImageAttributes一个包含此 Aspose.Imaging.Brushes.TextureBrush 对象使用的图像的附加信息的 com.aspose.imaging.ImageAttributes 对象。

getImage()

public Image getImage()

获取与此 com.aspose.imaging.brushes.TextureBrush 对象关联的 com.aspose.imaging.Image 对象。

值:一个表示此 com.aspose.imaging.brushes.TextureBrush 对象用于填充形状的图像的 com.aspose.imaging.Image 对象。

Returns: Image

getImageAttributes()

public ImageAttributes getImageAttributes()

获取此 TextureBrush 关联的 ImageAttributes

值:此 ImageAttributes

Returns: ImageAttributes

getImageRectangle()

public RectangleF getImageRectangle()

获取此 TextureBrush 关联的 Rectangle

值:此 Rectangle

Returns: RectangleF