ImageAttributes::SetToIdentity method (gdiplusimageattributes.h)

The ImageAttributes::SetToIdentity method sets the color-adjustment matrix of a specified category to identity matrix.

Syntax

Status SetToIdentity(
  ColorAdjustType type
);

Parameters

type

Type: ColorAdjustType

Element of the ColorAdjustType enumeration that specifies the category for which the color-adjustment matrix is set to identity. The default value is ColorAdjustTypeDefault.

Return value

Type: Status

If the method succeeds, it returns Ok, which is an element of the Status enumeration.

If the method fails, it returns one of the other elements of the Status enumeration.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusimageattributes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Bitmap

ColorAdjustType

ColorMatrix

Image

ImageAttributes

Metafile

Recoloring