<PackageReference Include="System.Drawing.Common" Version="8.0.0" />

ImageAttributes

public sealed class ImageAttributes : ICloneable, IDisposable
Contains information about how bitmap and metafile colors are manipulated during rendering.
public ImageAttributes()

Initializes a new instance of the ImageAttributes class.

public void ClearBrushRemapTable()

Clears the brush color-remap table of this ImageAttributes object.

public void ClearColorKey()

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

public void ClearColorKey(ColorAdjustType type)

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

public void ClearColorMatrix()

Clears the color-adjustment matrix for the default category.

Clears the color-adjustment matrix for a specified category.

public void ClearGamma()

Disables gamma correction for the default category.

public void ClearGamma(ColorAdjustType type)

Disables gamma correction for a specified category.

public void ClearNoOp()

Clears the NoOp setting for the default category.

public void ClearNoOp(ColorAdjustType type)

Clears the NoOp setting for a specified category.

public void ClearOutputChannel()

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

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

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

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

public void ClearRemapTable()

Clears the color-remap table for the default category.

public void ClearRemapTable(ColorAdjustType type)

Clears the color-remap table for a specified category.

public void ClearThreshold()

Clears the threshold value for the default category.

public void ClearThreshold(ColorAdjustType type)

Clears the threshold value for a specified category.

public object Clone()

Creates an exact copy of this ImageAttributes object.

public void Dispose()

Releases all resources used by this ImageAttributes object.

public void GetAdjustedPalette(ColorPalette palette, ColorAdjustType type)

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

public void SetBrushRemapTable(ColorMap[] map)

Sets the color-remap table for the brush category.

public void SetColorKey(Color colorLow, Color colorHigh)

Sets the color key for the default category.

public void SetColorKey(Color colorLow, Color colorHigh, ColorAdjustType type)

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

public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix)

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

public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags)

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

public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type)

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

public void SetColorMatrix(ColorMatrix newColorMatrix)

Sets the color-adjustment matrix for the default category.

public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags)

Sets the color-adjustment matrix for the default category.

public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type)

Sets the color-adjustment matrix for a specified category.

public void SetGamma(float gamma)

Sets the gamma value for the default category.

public void SetGamma(float gamma, ColorAdjustType type)

Sets the gamma value for a specified category.

public void SetNoOp()

Turns off color adjustment for the default category. You can call the ClearNoOp method to reinstate the color-adjustment settings that were in place before the call to the SetNoOp method.

public void SetNoOp(ColorAdjustType type)

Turns off color adjustment for a specified category. You can call the ClearNoOp method to reinstate the color-adjustment settings that were in place before the call to the SetNoOp method.

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

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

public void SetOutputChannelColorProfile(string colorProfileFilename)

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

public void SetOutputChannelColorProfile(string colorProfileFilename, ColorAdjustType type)

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

public void SetRemapTable(ColorMap[] map)

Sets the color-remap table for the default category.

public void SetRemapTable(ColorMap[] map, ColorAdjustType type)

Sets the color-remap table for a specified category.

public void SetThreshold(float threshold)

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

public void SetThreshold(float threshold, ColorAdjustType type)

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

public void SetWrapMode(WrapMode 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.

public void SetWrapMode(WrapMode 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.

public void SetWrapMode(WrapMode mode, Color color, bool 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.