**Inheritance:**
java.lang.Object
```
public final class ImageAttributes
```

一个 `com.aspose.imaging.ImageAttributes` 对象包含有关在渲染期间如何操作位图和元文件颜色的信息。`com.aspose.imaging.ImageAttributes` 对象维护多个颜色调整设置，包括颜色调整矩阵、灰度调整矩阵、伽马校正值、颜色映射表和颜色阈值。在渲染过程中，颜色可以被校正、加暗、增亮和移除。要应用这些操作，请初始化一个 `com.aspose.imaging.ImageAttributes` 对象，并将该对象的路径（以及 [Image](../../com.aspose.imaging/image) 的路径）传递给 drawImage 方法。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [ImageAttributes()](#ImageAttributes--) | 初始化 `com.aspose.imaging.ImageAttributes` 类的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [setColorMatrix(ColorMatrix newColorMatrix)](#setColorMatrix-com.aspose.imaging.ColorMatrix-) | 为默认类别设置颜色调整矩阵。 |
| [setColorMatrix(ColorMatrix newColorMatrix, int flags)](#setColorMatrix-com.aspose.imaging.ColorMatrix-int-) | 为默认类别设置颜色调整矩阵。 |
| [setColorMatrix(ColorMatrix newColorMatrix, int mode, int type)](#setColorMatrix-com.aspose.imaging.ColorMatrix-int-int-) | 为指定类别设置颜色调整矩阵。 |
| [clearColorMatrix()](#clearColorMatrix--) | 清除默认类别的颜色调整矩阵。 |
| [clearColorMatrix(int type)](#clearColorMatrix-int-) | 清除指定类别的颜色调整矩阵。 |
| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix)](#setColorMatrices-com.aspose.imaging.ColorMatrix-com.aspose.imaging.ColorMatrix-) | 为默认类别设置颜色调整矩阵和灰度调整矩阵。 |
| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int flags)](#setColorMatrices-com.aspose.imaging.ColorMatrix-com.aspose.imaging.ColorMatrix-int-) | 为默认类别设置颜色调整矩阵和灰度调整矩阵。 |
| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int mode, int type)](#setColorMatrices-com.aspose.imaging.ColorMatrix-com.aspose.imaging.ColorMatrix-int-int-) | 为指定类别设置颜色调整矩阵和灰度调整矩阵。 |
| [setThreshold(float threshold)](#setThreshold-float-) | 为默认类别设置阈值（透明度范围）。 |
| [setThreshold(float threshold, int type)](#setThreshold-float-int-) | 为指定类别设置阈值（透明度范围）。 |
| [clearThreshold()](#clearThreshold--) | 清除默认类别的阈值。 |
| [clearThreshold(int type)](#clearThreshold-int-) | 清除指定类别的阈值。 |
| [setGamma(float gamma)](#setGamma-float-) | 为默认类别设置伽马值。 |
| [setGamma(float gamma, int type)](#setGamma-float-int-) | 为指定类别设置伽马值。 |
| [clearGamma()](#clearGamma--) | 为默认类别禁用伽马校正。 |
| [clearGamma(int type)](#clearGamma-int-) | 为指定类别禁用伽马校正。 |
| [setNoOp()](#setNoOp--) | 关闭默认类别的颜色调整。 |
| [setNoOp(int type)](#setNoOp-int-) | 关闭指定类别的颜色调整。 |
| [clearNoOp()](#clearNoOp--) | 清除默认类别的 NoOp 设置。 |
| [clearNoOp(int type)](#clearNoOp-int-) | 清除指定类别的 NoOp 设置。 |
| [setColorKey(Color colorLow, Color colorHigh)](#setColorKey-com.aspose.imaging.Color-com.aspose.imaging.Color-) | 为默认类别设置颜色键。 |
| [setColorKey(Color colorLow, Color colorHigh, int type)](#setColorKey-com.aspose.imaging.Color-com.aspose.imaging.Color-int-) | 为指定类别设置颜色键（透明度范围）。 |
| [clearColorKey()](#clearColorKey--) | 清除默认类别的颜色键（透明度范围）。 |
| [clearColorKey(int type)](#clearColorKey-int-) | 清除指定类别的颜色键（透明度范围）。 |
| [setOutputChannel(int flags)](#setOutputChannel-int-) | 为默认类别设置 CMYK（青-品红-黄-黑）输出通道。 |
| [setOutputChannel(int flags, int type)](#setOutputChannel-int-int-) | 为指定类别设置 CMYK（青-品-黄-黑）输出通道。 |
| [clearOutputChannel()](#clearOutputChannel--) | 清除默认类别的 CMYK（青-品-黄-黑）输出通道设置。 |
| [clearOutputChannel(int type)](#clearOutputChannel-int-) | 清除指定类别的（青-品-黄-黑）输出通道设置。 |
| [setOutputChannelColorProfile(String colorProfileFilename)](#setOutputChannelColorProfile-java.lang.String-) | 为默认类别设置输出通道的颜色配置文件。 |
| [setOutputChannelColorProfile(String colorProfileFilename, int type)](#setOutputChannelColorProfile-java.lang.String-int-) | 为指定类别设置输出通道的颜色配置文件。 |
| [clearOutputChannelColorProfile()](#clearOutputChannelColorProfile--) | 清除默认类别的输出通道颜色配置设置。 |
| [clearOutputChannelColorProfile(int type)](#clearOutputChannelColorProfile-int-) | 清除指定类别的输出通道颜色配置设置。 |
| [setRemapTable(ColorMap[] map)](#setRemapTable-com.aspose.imaging.ColorMap---) | 为默认类别设置颜色重新映射表。 |
| [setRemapTable(ColorMap[] map, int type)](#setRemapTable-com.aspose.imaging.ColorMap---int-) | 为指定类别设置颜色重新映射表。 |
| [clearRemapTable()](#clearRemapTable--) | 清除默认类别的颜色重新映射表。 |
| [clearRemapTable(int type)](#clearRemapTable-int-) | 清除指定类别的颜色重新映射表。 |
| [setBrushRemapTable(ColorMap[] map)](#setBrushRemapTable-com.aspose.imaging.ColorMap---) | 为画笔类别设置颜色重新映射表。 |
| [clearBrushRemapTable()](#clearBrushRemapTable--) | 清除此 `com.aspose.imaging.ImageAttributes` 对象的画笔颜色重新映射表。 |
| [setWrapMode(int mode)](#setWrapMode-int-) | 设置用于决定如何在形状上或形状边界处平铺纹理的包裹模式。 |
| [setWrapMode(int mode, Color color)](#setWrapMode-int-com.aspose.imaging.Color-) | 设置用于决定如何在形状上或形状边界处平铺纹理的包裹模式和颜色。 |
| [setWrapMode(int mode, Color color, boolean clamp)](#setWrapMode-int-com.aspose.imaging.Color-boolean-) | 设置用于决定如何在形状上或形状边界处平铺纹理的包裹模式和颜色。 |
| [equals(Object o)](#equals-java.lang.Object-) |  |
| [hashCode()](#hashCode--) |  |
### ImageAttributes() {#ImageAttributes--}
```
public ImageAttributes()
```


初始化 `com.aspose.imaging.ImageAttributes` 类的新实例。

### setColorMatrix(ColorMatrix newColorMatrix) {#setColorMatrix-com.aspose.imaging.ColorMatrix-}
```
public void setColorMatrix(ColorMatrix newColorMatrix)
```


为默认类别设置颜色调整矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 颜色调整矩阵。 |

### setColorMatrix(ColorMatrix newColorMatrix, int flags) {#setColorMatrix-com.aspose.imaging.ColorMatrix-int-}
```
public void setColorMatrix(ColorMatrix newColorMatrix, int flags)
```


为默认类别设置颜色调整矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 颜色调整矩阵。 |
| 标志 | int | `Aspose.Imaging.ColorMatrixFlag` 的一个元素，指定将受到颜色调整矩阵影响的图像和颜色类型。 |

### setColorMatrix(ColorMatrix newColorMatrix, int mode, int type) {#setColorMatrix-com.aspose.imaging.ColorMatrix-int-int-}
```
public void setColorMatrix(ColorMatrix newColorMatrix, int mode, int type)
```


为指定类别设置颜色调整矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 颜色调整矩阵。 |
| 模式 | int | `Aspose.Imaging.ColorMatrixFlag` 的一个元素，指定将受到颜色调整矩阵影响的图像和颜色类型。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定为其设置颜色调整矩阵的类别。 |

### clearColorMatrix() {#clearColorMatrix--}
```
public void clearColorMatrix()
```


清除默认类别的颜色调整矩阵。

### clearColorMatrix(int type) {#clearColorMatrix-int-}
```
public void clearColorMatrix(int type)
```


清除指定类别的颜色调整矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定为其清除颜色调整矩阵的类别。 |

### setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix) {#setColorMatrices-com.aspose.imaging.ColorMatrix-com.aspose.imaging.ColorMatrix-}
```
public void setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix)
```


为默认类别设置颜色调整矩阵和灰度调整矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 颜色调整矩阵。 |
| grayMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 灰度调整矩阵。 |

### setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int flags) {#setColorMatrices-com.aspose.imaging.ColorMatrix-com.aspose.imaging.ColorMatrix-int-}
```
public void setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int flags)
```


为默认类别设置颜色调整矩阵和灰度调整矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 颜色调整矩阵。 |
| grayMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 灰度调整矩阵。 |
| 标志 | int | `Aspose.Imaging.ColorMatrixFlag` 的一个元素，指定将受到颜色调整和灰度调整矩阵影响的图像和颜色类型。 |

### setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int mode, int type) {#setColorMatrices-com.aspose.imaging.ColorMatrix-com.aspose.imaging.ColorMatrix-int-int-}
```
public void setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int mode, int type)
```


为指定类别设置颜色调整矩阵和灰度调整矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 颜色调整矩阵。 |
| grayMatrix | [ColorMatrix](../../com.aspose.imaging/colormatrix) | 灰度调整矩阵。 |
| 模式 | int | `Aspose.Imaging.ColorMatrixFlag` 的一个元素，指定将受到颜色调整和灰度调整矩阵影响的图像和颜色类型。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定为其设置颜色调整和灰度调整矩阵的类别。 |

### setThreshold(float threshold) {#setThreshold-float-}
```
public void setThreshold(float threshold)
```


为默认类别设置阈值（透明度范围）。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| threshold | float | 指定阈值的实数。 |

### setThreshold(float threshold, int type) {#setThreshold-float-int-}
```
public void setThreshold(float threshold, int type)
```


为指定类别设置阈值（透明度范围）。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| threshold | float | 从 0.0 到 1.0 的阈值，用作分割点来对颜色进行排序，这些颜色将映射到最大值或最小值。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定设置颜色阈值的类别。 |

### clearThreshold() {#clearThreshold--}
```
public void clearThreshold()
```


清除默认类别的阈值。

### clearThreshold(int type) {#clearThreshold-int-}
```
public void clearThreshold(int type)
```


清除指定类别的阈值。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定清除阈值的类别。 |

### setGamma(float gamma) {#setGamma-float-}
```
public void setGamma(float gamma)
```


为默认类别设置伽马值。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 伽马 | float | 伽马校正值。 |

### setGamma(float gamma, int type) {#setGamma-float-int-}
```
public void setGamma(float gamma, int type)
```


为指定类别设置伽马值。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 伽马 | float | 伽马校正值。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 枚举的一个元素，指定设置伽马值的类别。 |

### clearGamma() {#clearGamma--}
```
public void clearGamma()
```


为默认类别禁用伽马校正。

### clearGamma(int type) {#clearGamma-int-}
```
public void clearGamma(int type)
```


为指定类别禁用伽马校正。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定禁用伽马校正的类别。 |

### setNoOp() {#setNoOp--}
```
public void setNoOp()
```


关闭默认类别的颜色调整。

### setNoOp(int type) {#setNoOp-int-}
```
public void setNoOp(int type)
```


关闭指定类别的颜色调整。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定关闭颜色校正的类别。 |

### clearNoOp() {#clearNoOp--}
```
public void clearNoOp()
```


清除默认类别的 NoOp 设置。

### clearNoOp(int type) {#clearNoOp-int-}
```
public void clearNoOp(int type)
```


清除指定类别的 NoOp 设置。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定清除 NoOp 设置的类别。 |

### setColorKey(Color colorLow, Color colorHigh) {#setColorKey-com.aspose.imaging.Color-com.aspose.imaging.Color-}
```
public void setColorKey(Color colorLow, Color colorHigh)
```


为默认类别设置颜色键。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| colorLow | [Color](../../com.aspose.imaging/color) | 低色键值。 |
| colorHigh | [Color](../../com.aspose.imaging/color) | 高色键值。 |

### setColorKey(Color colorLow, Color colorHigh, int type) {#setColorKey-com.aspose.imaging.Color-com.aspose.imaging.Color-int-}
```
public void setColorKey(Color colorLow, Color colorHigh, int type)
```


为指定类别设置颜色键（透明度范围）。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| colorLow | [Color](../../com.aspose.imaging/color) | 低色键值。 |
| colorHigh | [Color](../../com.aspose.imaging/color) | 高色键值。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定设置色键的类别。 |

### clearColorKey() {#clearColorKey--}
```
public void clearColorKey()
```


清除默认类别的颜色键（透明度范围）。

### clearColorKey(int type) {#clearColorKey-int-}
```
public void clearColorKey(int type)
```


清除指定类别的颜色键（透明度范围）。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定清除色键的类别。 |

### setOutputChannel(int flags) {#setOutputChannel-int-}
```
public void setOutputChannel(int flags)
```


为默认类别设置 CMYK（青-品红-黄-黑）输出通道。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 标志 | int | `Aspose.Imaging.ColorChannelFlag` 的一个元素，指定输出通道。 |

### setOutputChannel(int flags, int type) {#setOutputChannel-int-int-}
```
public void setOutputChannel(int flags, int type)
```


为指定类别设置 CMYK（青-品-黄-黑）输出通道。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 标志 | int | `Aspose.Imaging.ColorChannelFlag` 的一个元素，指定输出通道。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定设置输出通道的类别。 |

### clearOutputChannel() {#clearOutputChannel--}
```
public void clearOutputChannel()
```


清除默认类别的 CMYK（青-品-黄-黑）输出通道设置。

### clearOutputChannel(int type) {#clearOutputChannel-int-}
```
public void clearOutputChannel(int type)
```


清除指定类别的（青-品-黄-黑）输出通道设置。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定清除输出通道设置的类别。 |

### setOutputChannelColorProfile(String colorProfileFilename) {#setOutputChannelColorProfile-java.lang.String-}
```
public void setOutputChannelColorProfile(String colorProfileFilename)
```


为默认类别设置输出通道的颜色配置文件。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| colorProfileFilename | java.lang.String | 颜色配置文件的路径名。如果颜色配置文件位于 %SystemRoot%\\System32\\Spool\\Drivers\\Color 目录中，此参数可以是文件名。否则，此参数必须是完整的路径名。 |

### setOutputChannelColorProfile(String colorProfileFilename, int type) {#setOutputChannelColorProfile-java.lang.String-int-}
```
public void setOutputChannelColorProfile(String colorProfileFilename, int type)
```


为指定类别设置输出通道的颜色配置文件。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| colorProfileFilename | java.lang.String | 颜色配置文件的路径名。如果颜色配置文件位于 %SystemRoot%\\System32\\Spool\\Drivers\\Color 目录中，此参数可以是文件名。否则，此参数必须是完整的路径名。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定设置输出通道颜色配置文件的类别。 |

### clearOutputChannelColorProfile() {#clearOutputChannelColorProfile--}
```
public void clearOutputChannelColorProfile()
```


清除默认类别的输出通道颜色配置设置。

### clearOutputChannelColorProfile(int type) {#clearOutputChannelColorProfile-int-}
```
public void clearOutputChannelColorProfile(int type)
```


清除指定类别的输出通道颜色配置设置。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定清除输出通道配置设置的类别。 |

### setRemapTable(ColorMap[] map) {#setRemapTable-com.aspose.imaging.ColorMap---}
```
public void setRemapTable(ColorMap[] map)
```


为默认类别设置颜色重新映射表。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| map | [ColorMap\[\]](../../com.aspose.imaging/colormap) | `com.aspose.imaging.ColorMap` 类型的颜色对数组。每个颜色对包含一个现有颜色（第一个值）和它将映射到的颜色（第二个值）。 |

### setRemapTable(ColorMap[] map, int type) {#setRemapTable-com.aspose.imaging.ColorMap---int-}
```
public void setRemapTable(ColorMap[] map, int type)
```


为指定类别设置颜色重新映射表。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| map | [ColorMap\[\]](../../com.aspose.imaging/colormap) | `com.aspose.imaging.ColorMap` 类型的颜色对数组。每个颜色对包含一个现有颜色（第一个值）和它将映射到的颜色（第二个值）。 |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定设置颜色重新映射表的类别。 |

### clearRemapTable() {#clearRemapTable--}
```
public void clearRemapTable()
```


清除默认类别的颜色重新映射表。

### clearRemapTable(int type) {#clearRemapTable-int-}
```
public void clearRemapTable(int type)
```


清除指定类别的颜色重新映射表。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | int | `Aspose.Imaging.ColorAdjustType` 的一个元素，指定清除重新映射表的类别。 |

### setBrushRemapTable(ColorMap[] map) {#setBrushRemapTable-com.aspose.imaging.ColorMap---}
```
public void setBrushRemapTable(ColorMap[] map)
```


为画笔类别设置颜色重新映射表。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| map | [ColorMap\[\]](../../com.aspose.imaging/colormap) | `com.aspose.imaging.ColorMap` 对象数组。 |

### clearBrushRemapTable() {#clearBrushRemapTable--}
```
public void clearBrushRemapTable()
```


清除此 `com.aspose.imaging.ImageAttributes` 对象的画笔颜色重新映射表。

### setWrapMode(int mode) {#setWrapMode-int-}
```
public void setWrapMode(int mode)
```


设置用于决定如何在形状上或形状边界处平铺纹理的包装模式。当纹理小于要填充的形状时，纹理会在形状上平铺以填充。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 模式 | int | `Aspose.Imaging.WrapMode` 的一个元素，指定如何使用图像的重复副本来平铺区域。 |

### setWrapMode(int mode, Color color) {#setWrapMode-int-com.aspose.imaging.Color-}
```
public void setWrapMode(int mode, Color color)
```


设置用于决定如何在形状上或形状边界平铺纹理的包装模式和颜色。当纹理小于要填充的形状时，纹理会在形状上平铺以填充它。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 模式 | int | `Aspose.Imaging.WrapMode` 的一个元素，指定如何使用图像的重复副本来平铺区域。 |
| color | [Color](../../com.aspose.imaging/color) | `com.aspose.imaging.ImageAttributes` 对象，指定渲染图像之外像素的颜色。如果模式参数设置为 `WrapMode.Clamp` 且传递给 DrawImage 的源矩形大于图像本身，则此颜色可见。 |

### setWrapMode(int mode, Color color, boolean clamp) {#setWrapMode-int-com.aspose.imaging.Color-boolean-}
```
public void setWrapMode(int mode, Color color, boolean clamp)
```


设置用于决定如何在形状上或形状边界平铺纹理的包装模式和颜色。当纹理小于要填充的形状时，纹理会在形状上平铺以填充它。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 模式 | int | `Aspose.Imaging.WrapMode` 的一个元素，指定如何使用图像的重复副本来平铺区域。 |
| color | [Color](../../com.aspose.imaging/color) | 颜色对象，指定渲染图像之外像素的颜色。如果模式参数设置为 `WrapMode.Clamp` 且传递给 DrawImage 的源矩形大于图像本身，则此颜色可见。 |
| 夹紧 | boolean | 此参数无效。将其设为 false。 |

### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```




**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| o | java.lang.Object |  |

**Returns:**
boolean
### hashCode() {#hashCode--}
```
public int hashCode()
```




**Returns:**
int
