ID2D1DeviceContext2 interface
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.
Members
The ID2D1DeviceContext2 interface inherits from ID2D1DeviceContext1. ID2D1DeviceContext2 also has these types of members:
Methods
The ID2D1DeviceContext2 interface has these methods.
| Method | Description |
|---|---|
| CreateGradientMesh |
Creates a new ID2D1GradientMesh instance using the given array of patches. |
| CreateImageSourceFromDxgi |
Creates an image source from a set of DXGI surface(s). The YCbCr surface(s) are converted to RGBA automatically during subsequent drawing. |
| CreateImageSourceFromWic | Overloaded. 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. |
| CreateInk | Overloaded. Creates a new ID2D1Ink object that starts at the given point. |
| CreateInkStyle | Overloaded. Creates a new ID2D1InkStyle object, for use with ink rendering methods such as DrawInk. |
| 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. |
| CreateTransformedImageSource |
Creates an image source which shares resources with an original. |
| DrawGdiMetafile | Overloaded. Draw a metafile to the device context. |
| DrawGradientMesh |
Renders a given gradient mesh to the target. |
| DrawInk |
Renders the given ink object using the given brush and ink style. |
| GetGradientMeshWorldBounds |
Returns the world bounds of a given gradient mesh. |
Requirements
|
Minimum supported client |
Windows 10 [desktop apps | UWP apps] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows 10 Mobile |
|
Header |
|
|
Library |
|
See also