TextureBrush 类

Summary: 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.

Module: aspose.imaging.brushes

Full Name: aspose.imaging.brushes.TextureBrush

Inheritance: TransformBrush

Constructors

Name描述
TextureBrush(image)使用指定的图像初始化 TextureBrush 类的新实例。
TextureBrush(image, destination_rectangle)使用指定的图像和边界矩形初始化 TextureBrush 类的新实例。
TextureBrush(image, destination_rectangle)使用指定的图像和边界矩形初始化 TextureBrush 类的新实例。
TextureBrush(image, destination_rectangle, image_attributes)使用指定的图像、边界矩形和图像属性初始化 TextureBrush 类的新实例。
TextureBrush(image, destination_rectangle, image_attributes)使用指定的图像、边界矩形和图像属性初始化 TextureBrush 类的新实例。
TextureBrush(image, wrap_mode)使用指定的图像和包装模式初始化 TextureBrush 类的新实例。
TextureBrush(image, wrap_mode, destination_rectangle)使用指定的图像、包装模式和边界矩形初始化 TextureBrush 类的新实例。
TextureBrush(image, wrap_mode, destination_rectangle)使用指定的图像、包装模式和边界矩形初始化 TextureBrush 类的新实例。

Properties

NameTypeAccess描述
disposedboolr获取一个值,指示此实例是否已释放。
imageImager获取与此 TextureBrush 对象关联的 Image 对象。
image_attributesImageAttributesr获取与此 TextureBrush 关联的 TextureBrush.image_attributes
image_rectangleRectangleFr获取与此 TextureBrush 关联的 Rectangle
is_transform_changedboolr获取一个值,指示变换是否以某种方式被更改。例如设置变换矩阵或
调用任何修改变换矩阵的方法。此属性为向后兼容 GDI+ 而引入。
opacityfloatr/w获取或设置画笔的不透明度。该值应在 0 到 1 之间。0 表示画笔完全可见,1 表示画笔完全不透明。
transformMatrixr/w获取或设置一个 Matrix 副本,用于定义此 TransformBrush 的局部几何变换。
wrap_modeWrapModer/w获取或设置一个指示此 TransformBrush 的包装模式的 WrapMode 枚举。

Methods

Name描述
create_with_image_rect(image, destination_rectangle)使用指定的图像和边界矩形初始化 TextureBrush 类的新实例。
create_with_image_rect_attribs(image, destination_rectangle, image_attributes)使用指定的图像、边界矩形和图像属性初始化 TextureBrush 类的新实例。
create_with_image_rect_f(image, destination_rectangle)使用指定的图像和边界矩形初始化 TextureBrush 类的新实例。
create_with_image_rect_f_attribs(image, destination_rectangle, image_attributes)使用指定的图像、边界矩形和图像属性初始化 TextureBrush 类的新实例。
create_with_image_wrap_mode(image, wrap_mode)使用指定的图像和包装模式初始化 TextureBrush 类的新实例。
create_with_image_wrap_mode_rect(image, wrap_mode, destination_rectangle)使用指定的图像、包装模式和边界矩形初始化 TextureBrush 类的新实例。
create_with_image_wrap_mode_rect_f(image, wrap_mode, destination_rectangle)使用指定的图像、包装模式和边界矩形初始化 TextureBrush 类的新实例。
deep_clone()创建当前 Brush 的新深度克隆。
multiply_transform(matrix)将表示此 LinearGradientBrush 的本地几何变换的 Matrix 与指定的 Matrix 相乘,并在前面预置指定的 Matrix
multiply_transform(matrix, order)将表示此 LinearGradientBrush 的本地几何变换的 Matrix 与指定的 Matrix 按指定顺序相乘。
reset_transform()TransformBrush.transform 属性重置为单位矩阵。
rotate_transform(angle)按指定量旋转本地几何变换。此方法将在变换前预置旋转。
rotate_transform(angle, order)按指定量并按指定顺序旋转本地几何变换。
scale_transform(sx, sy)按指定的比例缩放本地几何变换。此方法将在变换前预置缩放矩阵。
scale_transform(sx, sy, order)按指定的比例并按指定顺序缩放本地几何变换。
translate_transform(dx, dy)按指定的尺寸平移本地几何变换。此方法将在变换前预置平移。
translate_transform(dx, dy, order)按指定的尺寸并按指定顺序平移本地几何变换。

Constructor: TextureBrush(image)

 TextureBrush(image) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。

Constructor: TextureBrush(image, destination_rectangle)

 TextureBrush(image, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangle表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。

Constructor: TextureBrush(image, destination_rectangle)

 TextureBrush(image, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangleF表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。

Constructor: TextureBrush(image, destination_rectangle, image_attributes)

 TextureBrush(image, destination_rectangle, image_attributes) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangle表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。
image_attributesImageAttributes包含关于此 TextureBrush 对象使用的图像的附加信息的 ImageAttributes 对象。

Constructor: TextureBrush(image, destination_rectangle, image_attributes)

 TextureBrush(image, destination_rectangle, image_attributes) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangleF表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。
image_attributesImageAttributes包含关于此 TextureBrush 对象使用的图像的附加信息的 ImageAttributes 对象。

Constructor: TextureBrush(image, wrap_mode)

 TextureBrush(image, wrap_mode) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
wrap_modeWrapMode指定此 TextureBrush 对象平铺方式的 WrapMode 枚举。

Constructor: TextureBrush(image, wrap_mode, destination_rectangle)

 TextureBrush(image, wrap_mode, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
wrap_modeWrapMode指定此 TextureBrush 对象平铺方式的 WrapMode 枚举。
destination_rectangleRectangle表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。

Constructor: TextureBrush(image, wrap_mode, destination_rectangle)

 TextureBrush(image, wrap_mode, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
wrap_modeWrapMode指定此 TextureBrush 对象平铺方式的 WrapMode 枚举。
destination_rectangleRectangleF表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。

Method: create_with_image_rect(image, destination_rectangle) [static]

 create_with_image_rect(image, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangle表示此 TextureBrush 对象的边界矩形的 RectangleF 结构。

Returns

TypeDescription
TextureBrush

Method: create_with_image_rect_attribs(image, destination_rectangle, image_attributes) [static]

 create_with_image_rect_attribs(image, destination_rectangle, image_attributes) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangle表示此 TextureBrush 对象的边界矩形的 Rectangle 结构。
image_attributesImageAttributes包含关于此 TextureBrush 对象使用的图像的附加信息的 ImageAttributes 对象。

Returns

TypeDescription
TextureBrush

Method: create_with_image_rect_f(image, destination_rectangle) [static]

 create_with_image_rect_f(image, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangleF表示此 TextureBrush 对象的边界矩形的 RectangleF 结构。

Returns

TypeDescription
TextureBrush

Method: create_with_image_rect_f_attribs(image, destination_rectangle, image_attributes) [static]

 create_with_image_rect_f_attribs(image, destination_rectangle, image_attributes) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
destination_rectangleRectangleF表示此 TextureBrush 对象的边界矩形的 RectangleF 结构。
image_attributesImageAttributes包含关于此 TextureBrush 对象使用的图像的附加信息的 ImageAttributes 对象。

Returns

TypeDescription
TextureBrush

Method: create_with_image_wrap_mode(image, wrap_mode) [static]

 create_with_image_wrap_mode(image, wrap_mode) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
wrap_modeWrapMode指定此 TextureBrush 对象平铺方式的 WrapMode 枚举。

Returns

TypeDescription
TextureBrush

Method: create_with_image_wrap_mode_rect(image, wrap_mode, destination_rectangle) [static]

 create_with_image_wrap_mode_rect(image, wrap_mode, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
wrap_modeWrapMode指定此 TextureBrush 对象平铺方式的 WrapMode 枚举。
destination_rectangleRectangle表示此 TextureBrush 对象的边界矩形的 RectangleF 结构。

Returns

TypeDescription
TextureBrush

Method: create_with_image_wrap_mode_rect_f(image, wrap_mode, destination_rectangle) [static]

 create_with_image_wrap_mode_rect_f(image, wrap_mode, destination_rectangle) 

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

Parameters:

参数TypeDescription
imageImageTextureBrush 对象用于填充内部的 Image 对象。
wrap_modeWrapMode指定此 TextureBrush 对象平铺方式的 WrapMode 枚举。
destination_rectangleRectangleF表示此 TextureBrush 对象的边界矩形的 RectangleF 结构。

Returns

TypeDescription
TextureBrush

Method: deep_clone()

 deep_clone() 

创建当前 Brush 的新深度克隆。

Returns

TypeDescription
Brush一个新的 Brush,它是此 Brush 实例的深度克隆。

Method: multiply_transform(matrix)

 multiply_transform(matrix) 

将表示此 LinearGradientBrush 的本地几何变换的 Matrix 与指定的 Matrix 相乘,并在前面预置指定的 Matrix

Parameters:

参数TypeDescription
matrixMatrix用于乘以几何变换的 Matrix

Method: multiply_transform(matrix, order)

 multiply_transform(matrix, order) 

将表示此 LinearGradientBrush 的本地几何变换的 Matrix 与指定的 Matrix 按指定顺序相乘。

Parameters:

参数TypeDescription
matrixMatrix用于乘以几何变换的 Matrix
orderMatrixOrder指定两个矩阵相乘顺序的 MatrixOrder

Method: rotate_transform(angle)

 rotate_transform(angle) 

按指定量旋转本地几何变换。此方法将在变换前预置旋转。

Parameters:

参数TypeDescription
角度float旋转角度。

Method: rotate_transform(angle, order)

 rotate_transform(angle, order) 

按指定量并按指定顺序旋转本地几何变换。

Parameters:

参数TypeDescription
角度float旋转角度。
orderMatrixOrder指定是追加还是预置旋转矩阵的 MatrixOrder

Method: scale_transform(sx, sy)

 scale_transform(sx, sy) 

按指定的比例缩放本地几何变换。此方法将在变换前预置缩放矩阵。

Parameters:

参数TypeDescription
sxfloat在 x 轴方向上缩放变换的量。
syfloat在 y 轴方向上缩放变换的量。

Method: scale_transform(sx, sy, order)

 scale_transform(sx, sy, order) 

按指定的比例并按指定顺序缩放本地几何变换。

Parameters:

参数TypeDescription
sxfloat在 x 轴方向上缩放变换的量。
syfloat在 y 轴方向上缩放变换的量。
orderMatrixOrder一个 MatrixOrder 用于指定是追加还是预先追加缩放矩阵。

Method: translate_transform(dx, dy)

 translate_transform(dx, dy) 

按指定的尺寸平移本地几何变换。此方法将在变换前预置平移。

Parameters:

参数TypeDescription
dxfloatx 方向的平移值。
dyfloaty 方向的平移值。

Method: translate_transform(dx, dy, order)

 translate_transform(dx, dy, order) 

按指定的尺寸并按指定顺序平移本地几何变换。

Parameters:

参数TypeDescription
dxfloatx 方向的平移值。
dyfloaty 方向的平移值。
orderMatrixOrder应用平移的顺序(预先追加或追加)。