Skip to main content
ID2D1Bitmap1::GetColorContext method

Gets the color context information associated with the bitmap.

Syntax


void GetColorContext(
  [out, optional]  ID2D1ColorContext **colorContext
) const;

Parameters

colorContext [out, optional]

Type: ID2D1ColorContext**

When this method returns, contains the address of a pointer to the color context interface associated with the bitmap.

Return value

This method does not return a value.

Remarks

If the bitmap was created without specifying a color context, the returned context is NULL.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1.h

DLL

D2d1.dll

See also

ID2D1Bitmap1