ID2D1DeviceContext2 interface (d2d1_3.h)

This interface performs all the same functions as the ID2D1DeviceContext1 interface, plus it enables functionality such as ink rendering, gradient mesh rendering, and improved image loading.

Inheritance

The ID2D1DeviceContext2 interface inherits from ID2D1DeviceContext1. ID2D1DeviceContext2 also has these types of members:

Methods

The ID2D1DeviceContext2 interface has these methods.

 
ID2D1DeviceContext2::CreateGradientMesh

Creates a new ID2D1GradientMesh instance using the given array of patches.
ID2D1DeviceContext2::CreateImageSourceFromDxgi

Creates an image source from a set of DXGI surface(s). The YCbCr surface(s) are converted to RGBA automatically during subsequent drawing.
ID2D1DeviceContext2::CreateImageSourceFromWic

Creates an image source object from a WIC bitmap source, while populating all pixel memory within the image source. The image is loaded and stored while using a minimal amount of memory. (overload 3/3)
ID2D1DeviceContext2::CreateImageSourceFromWic

Creates an image source object from a WIC bitmap source, while populating all pixel memory within the image source. The image is loaded and stored while using a minimal amount of memory. (overload 2/3)
ID2D1DeviceContext2::CreateImageSourceFromWic

Creates an image source object from a WIC bitmap source, while populating all pixel memory within the image source. The image is loaded and stored while using a minimal amount of memory. (overload 1/3)
ID2D1DeviceContext2::CreateInk

Creates a new ID2D1Ink object that starts at the given point. (overload 1/2)
ID2D1DeviceContext2::CreateInk

Creates a new ID2D1Ink object that starts at the given point. (overload 2/2)
ID2D1DeviceContext2::CreateInkStyle

Creates a new ID2D1InkStyle object, for use with ink rendering methods such as DrawInk. (overload 1/2)
ID2D1DeviceContext2::CreateInkStyle

Creates a new ID2D1InkStyle object, for use with ink rendering methods such as DrawInk. (overload 2/2)
ID2D1DeviceContext2::CreateLookupTable3D

Creates a 3D lookup table for mapping a 3-channel input to a 3-channel output. The table data must be provided in 4-channel format. (ID2D1DeviceContext2.CreateLookupTable3D)
ID2D1DeviceContext2::CreateTransformedImageSource

Creates an image source which shares resources with an original.
ID2D1DeviceContext2::DrawGdiMetafile

Draws a metafile to the device context using the given source and destination rectangles. (overload 1/3)
ID2D1DeviceContext2::DrawGdiMetafile

Draws a metafile to the device context using the given source and destination rectangles. (overload 3/3)
ID2D1DeviceContext2::DrawGdiMetafile

Draws a metafile to the device context using the given source and destination rectangles. (overload 2/3)
ID2D1DeviceContext2::DrawGradientMesh

Renders a given gradient mesh to the target. (ID2D1DeviceContext2.DrawGradientMesh)
ID2D1DeviceContext2::DrawInk

Renders the given ink object using the given brush and ink style. (ID2D1DeviceContext2.DrawInk)
ID2D1DeviceContext2::GetGradientMeshWorldBounds

Returns the world bounds of a given gradient mesh.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_3.h

See also

ID2D1DeviceContext1