**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
com.aspose.ms.System.IDisposable
```
public final class ImageAttributes implements System.IDisposable
```

Contains information about how bitmap and metafile colors are manipulated during rendering.
## Constructors

| Constructor | Description |
| --- | --- |
| [ImageAttributes()](#ImageAttributes--) | Initializes a new instance of the [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) class. |
## Methods

| Method | Description |
| --- | --- |
| [dispose()](#dispose--) | Releases all resources used by this [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) object. |
| [deepClone()](#deepClone--) | Creates an exact copy of this [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) object. |
| [setColorMatrix(ColorMatrix newColorMatrix)](#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-) | Sets the color-adjustment matrix for the default category. |
| [setColorMatrix(ColorMatrix newColorMatrix, int flags)](#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-) | Sets the color-adjustment matrix for the default category. |
| [setColorMatrix(ColorMatrix newColorMatrix, int mode, int type)](#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-int-) | Sets the color-adjustment matrix for a specified category. |
| [clearColorMatrix()](#clearColorMatrix--) | Clears the color-adjustment matrix for the default category. |
| [clearColorMatrix(int type)](#clearColorMatrix-int-) | Clears the color-adjustment matrix for a specified category. |
| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix)](#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-) | Sets the color-adjustment matrix and the grayscale-adjustment matrix for the default category. |
| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int flags)](#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-) | Sets the color-adjustment matrix and the grayscale-adjustment matrix for the default category. |
| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int mode, int type)](#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-int-) | Sets the color-adjustment matrix and the grayscale-adjustment matrix for a specified category. |
| [setThreshold(float threshold)](#setThreshold-float-) | Sets the threshold (transparency range) for the default category. |
| [setThreshold(float threshold, int type)](#setThreshold-float-int-) | Sets the threshold (transparency range) for a specified category. |
| [clearThreshold()](#clearThreshold--) | Clears the threshold value for the default category. |
| [clearThreshold(int type)](#clearThreshold-int-) | Clears the threshold value for a specified category. |
| [setGamma(float gamma)](#setGamma-float-) | Sets the gamma value for the default category. |
| [setGamma(float gamma, int type)](#setGamma-float-int-) | Sets the gamma value for a specified category. |
| [clearGamma()](#clearGamma--) | Disables gamma correction for the default category. |
| [clearGamma(int type)](#clearGamma-int-) | Disables gamma correction for a specified category. |
| [setNoOp()](#setNoOp--) | Turns off color adjustment for the default category. |
| [setNoOp(int type)](#setNoOp-int-) | Turns off color adjustment for a specified category. |
| [clearNoOp()](#clearNoOp--) | Clears the NoOp setting for the default category. |
| [clearNoOp(int type)](#clearNoOp-int-) | Clears the NoOp setting for a specified category. |
| [setColorKey(Color colorLow, Color colorHigh)](#setColorKey-com.aspose.drawing.Color-com.aspose.drawing.Color-) | Sets the color key for the default category. |
| [setColorKey(Color colorLow, Color colorHigh, int type)](#setColorKey-com.aspose.drawing.Color-com.aspose.drawing.Color-int-) | Sets the color key (transparency range) for a specified category. |
| [clearColorKey()](#clearColorKey--) | Clears the color key (transparency range) for the default category. |
| [clearColorKey(int type)](#clearColorKey-int-) | Clears the color key (transparency range) for a specified category. |
| [setOutputChannel(int flags)](#setOutputChannel-int-) | Sets the CMYK (cyan-magenta-yellow-black) output channel for the default category. |
| [setOutputChannel(int flags, int type)](#setOutputChannel-int-int-) | Sets the CMYK (cyan-magenta-yellow-black) output channel for a specified category. |
| [clearOutputChannel()](#clearOutputChannel--) | Clears the CMYK (cyan-magenta-yellow-black) output channel setting for the default category. |
| [clearOutputChannel(int type)](#clearOutputChannel-int-) | Clears the (cyan-magenta-yellow-black) output channel setting for a specified category. |
| [setOutputChannelColorProfile(String colorProfileFilename)](#setOutputChannelColorProfile-java.lang.String-) | Sets the output channel color-profile file for the default category. |
| [setOutputChannelColorProfile(String colorProfileFilename, int type)](#setOutputChannelColorProfile-java.lang.String-int-) | Sets the output channel color-profile file for a specified category. |
| [clearOutputChannelColorProfile()](#clearOutputChannelColorProfile--) | Clears the output channel color profile setting for the default category. |
| [clearOutputChannelColorProfile(int type)](#clearOutputChannelColorProfile-int-) | Clears the output channel color profile setting for a specified category. |
| [setRemapTable(ColorMap[] map)](#setRemapTable-com.aspose.drawing.imaging.ColorMap---) | Sets the color-remap table for the default category. |
| [setRemapTable(ColorMap[] map, int type)](#setRemapTable-com.aspose.drawing.imaging.ColorMap---int-) | Sets the color-remap table for a specified category. |
| [clearRemapTable()](#clearRemapTable--) | Clears the color-remap table for the default category. |
| [clearRemapTable(int type)](#clearRemapTable-int-) | Clears the color-remap table for a specified category. |
| [setBrushRemapTable(ColorMap[] map)](#setBrushRemapTable-com.aspose.drawing.imaging.ColorMap---) | Sets the color-remap table for the brush category. |
| [clearBrushRemapTable()](#clearBrushRemapTable--) | Clears the brush color-remap table of this [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) object. |
| [setWrapMode(int mode)](#setWrapMode-int-) | Sets the wrap mode that is used to decide how to tile a texture across a shape, or at shape boundaries. |
| [setWrapMode(int mode, Color color)](#setWrapMode-int-com.aspose.drawing.Color-) | Sets the wrap mode and color used to decide how to tile a texture across a shape, or at shape boundaries. |
| [setWrapMode(int mode, Color color, boolean clamp)](#setWrapMode-int-com.aspose.drawing.Color-boolean-) | Sets the wrap mode and color used to decide how to tile a texture across a shape, or at shape boundaries. |
| [getAdjustedPalette(ColorPalette palette, int type)](#getAdjustedPalette-com.aspose.drawing.imaging.ColorPalette-int-) | Adjusts the colors in a palette according to the adjustment settings of a specified category. |
### ImageAttributes() {#ImageAttributes--}
```
public ImageAttributes()
```


Initializes a new instance of the [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) class.

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


Releases all resources used by this [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) object.

### deepClone() {#deepClone--}
```
public Object deepClone()
```


Creates an exact copy of this [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) object.

**Returns:**
java.lang.Object - The [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) object this class creates, cast as an object.
### setColorMatrix(ColorMatrix newColorMatrix) {#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-}
```
public void setColorMatrix(ColorMatrix newColorMatrix)
```


Sets the color-adjustment matrix for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The color-adjustment matrix. |

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


Sets the color-adjustment matrix for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The color-adjustment matrix. |
| flags | int | An element of [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) that specifies the type of image and color that will be affected by the color-adjustment matrix. |

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


Sets the color-adjustment matrix for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The color-adjustment matrix. |
| mode | int | An element of [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) that specifies the type of image and color that will be affected by the color-adjustment matrix. |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the color-adjustment matrix is set. |

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


Clears the color-adjustment matrix for the default category.

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


Clears the color-adjustment matrix for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the color-adjustment matrix is cleared. |

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


Sets the color-adjustment matrix and the grayscale-adjustment matrix for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The color-adjustment matrix. |
| grayMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The grayscale-adjustment matrix. |

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


Sets the color-adjustment matrix and the grayscale-adjustment matrix for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The color-adjustment matrix. |
| grayMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The grayscale-adjustment matrix. |
| flags | int | An element of [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) that specifies the type of image and color that will be affected by the color-adjustment and grayscale-adjustment matrices. |

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


Sets the color-adjustment matrix and the grayscale-adjustment matrix for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The color-adjustment matrix. |
| grayMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | The grayscale-adjustment matrix. |
| mode | int | An element of [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) that specifies the type of image and color that will be affected by the color-adjustment and grayscale-adjustment matrices. |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the color-adjustment and grayscale-adjustment matrices are set. |

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


Sets the threshold (transparency range) for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| threshold | float | A real number that specifies the threshold value. |

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


Sets the threshold (transparency range) for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| threshold | float | A threshold value from 0.0 to 1.0 that is used as a breakpoint to sort colors that will be mapped to either a maximum or a minimum value. |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the color threshold is set. |

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


Clears the threshold value for the default category.

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


Clears the threshold value for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the threshold is cleared. |

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


Sets the gamma value for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| gamma | float | The gamma correction value. |

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


Sets the gamma value for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| gamma | float | The gamma correction value. |
| type | int | An element of the [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) enumeration that specifies the category for which the gamma value is set. |

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


Disables gamma correction for the default category.

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


Disables gamma correction for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which gamma correction is disabled. |

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


Turns off color adjustment for the default category. You can call the [.clearNoOp](../../null/\#clearNoOp) method to reinstate the color-adjustment settings that were in place before the call to the [.setNoOp](../../null/\#setNoOp) method.

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


Turns off color adjustment for a specified category. You can call the [.clearNoOp](../../null/\#clearNoOp) method to reinstate the color-adjustment settings that were in place before the call to the [.setNoOp](../../null/\#setNoOp) method.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which color correction is turned off. |

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


Clears the NoOp setting for the default category.

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


Clears the NoOp setting for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the NoOp setting is cleared. |

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


Sets the color key for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| colorLow | [Color](../../com.aspose.drawing/color) | The low color-key value. |
| colorHigh | [Color](../../com.aspose.drawing/color) | The high color-key value. |

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


Sets the color key (transparency range) for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| colorLow | [Color](../../com.aspose.drawing/color) | The low color-key value. |
| colorHigh | [Color](../../com.aspose.drawing/color) | The high color-key value. |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the color key is set. |

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


Clears the color key (transparency range) for the default category.

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


Clears the color key (transparency range) for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the color key is cleared. |

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


Sets the CMYK (cyan-magenta-yellow-black) output channel for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| flags | int | An element of [ColorChannelFlag](../../com.aspose.drawing.imaging/colorchannelflag) that specifies the output channel. |

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


Sets the CMYK (cyan-magenta-yellow-black) output channel for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| flags | int | An element of [ColorChannelFlag](../../com.aspose.drawing.imaging/colorchannelflag) that specifies the output channel. |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the output channel is set. |

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


Clears the CMYK (cyan-magenta-yellow-black) output channel setting for the default category.

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


Clears the (cyan-magenta-yellow-black) output channel setting for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the output channel setting is cleared. |

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


Sets the output channel color-profile file for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| colorProfileFilename | java.lang.String | The path name of a color-profile file. If the color-profile file is in the %SystemRoot%\\System32\\Spool\\Drivers\\Color directory, this parameter can be the file name. Otherwise, this parameter must be the fully qualified path name. |

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


Sets the output channel color-profile file for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| colorProfileFilename | java.lang.String | The path name of a color-profile file. If the color-profile file is in the %SystemRoot%\\System32\\Spool\\Drivers\\Color directory, this parameter can be the file name. Otherwise, this parameter must be the fully qualified path name. |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the output channel color-profile file is set. |

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


Clears the output channel color profile setting for the default category.

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


Clears the output channel color profile setting for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the output channel profile setting is cleared. |

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


Sets the color-remap table for the default category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| map | [ColorMap\[\]](../../com.aspose.drawing.imaging/colormap) | An array of color pairs of type [ColorMap](../../com.aspose.drawing.imaging/colormap). Each color pair contains an existing color (the first value) and the color that it will be mapped to (the second value). |

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


Sets the color-remap table for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| map | [ColorMap\[\]](../../com.aspose.drawing.imaging/colormap) | An array of color pairs of type [ColorMap](../../com.aspose.drawing.imaging/colormap). Each color pair contains an existing color (the first value) and the color that it will be mapped to (the second value). |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the color-remap table is set. |

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


Clears the color-remap table for the default category.

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


Clears the color-remap table for a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category for which the remap table is cleared. |

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


Sets the color-remap table for the brush category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| map | [ColorMap\[\]](../../com.aspose.drawing.imaging/colormap) | An array of [ColorMap](../../com.aspose.drawing.imaging/colormap) objects. |

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


Clears the brush color-remap table of this [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) object.

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


Sets the wrap mode that is used to decide how to tile a texture across a shape, or at shape boundaries. A texture is tiled across a shape to fill it in when the texture is smaller than the shape it is filling.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mode | int | An element of [WrapMode](../../com.aspose.drawing.drawing2d/wrapmode) that specifies how repeated copies of an image are used to tile an area. |

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


Sets the wrap mode and color used to decide how to tile a texture across a shape, or at shape boundaries. A texture is tiled across a shape to fill it in when the texture is smaller than the shape it is filling.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mode | int | An element of [WrapMode](../../com.aspose.drawing.drawing2d/wrapmode) that specifies how repeated copies of an image are used to tile an area. |
| color | [Color](../../com.aspose.drawing/color) | An [Color](../../com.aspose.drawing/color) object that specifies the color of pixels outside of a rendered image. This color is visible if the mode parameter is set to `WrapMode.Clamp` and the source rectangle passed to `Graphics.DrawImage` is larger than the image itself. |

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


Sets the wrap mode and color used to decide how to tile a texture across a shape, or at shape boundaries. A texture is tiled across a shape to fill it in when the texture is smaller than the shape it is filling.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mode | int | An element of [WrapMode](../../com.aspose.drawing.drawing2d/wrapmode) that specifies how repeated copies of an image are used to tile an area. |
| color | [Color](../../com.aspose.drawing/color) | A color object that specifies the color of pixels outside of a rendered image. This color is visible if the mode parameter is set to `WrapMode.Clamp` and the source rectangle passed to `Graphics.DrawImage` is larger than the image itself. |
| clamp | boolean | This parameter has no effect. Set it to false. |

### getAdjustedPalette(ColorPalette palette, int type) {#getAdjustedPalette-com.aspose.drawing.imaging.ColorPalette-int-}
```
public void getAdjustedPalette(ColorPalette palette, int type)
```


Adjusts the colors in a palette according to the adjustment settings of a specified category.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| palette | [ColorPalette](../../com.aspose.drawing.imaging/colorpalette) | A [ColorPalette](../../com.aspose.drawing.imaging/colorpalette) that on input contains the palette to be adjusted, and on output contains the adjusted palette. |
| type | int | An element of [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) that specifies the category whose adjustment settings will be applied to the palette. |

