ID2D1Factory1 interface

Creates Direct2D resources.

Methods

The ID2D1Factory1 interface has these methods.

Method Description
ID2D1Factory1::CreateDevice Creates a ID2D1Device object.
ID2D1Factory1::CreateDrawingStateBlock Creates a new drawing state block, this can be used in subsequent SaveDrawingState and RestoreDrawingState operations on the render target.
ID2D1Factory1::CreateDrawingStateBlock Creates a new drawing state block, this can be used in subsequent SaveDrawingState and RestoreDrawingState operations on the render target.
ID2D1Factory1::CreateGdiMetafile Creates a new ID2D1GdiMetafile object that you can use to replay metafile content.
ID2D1Factory1::CreatePathGeometry Creates an ID2D1PathGeometry1 object.
ID2D1Factory1::CreateStrokeStyle Creates a ID2D1StrokeStyle1 object.
ID2D1Factory1::CreateStrokeStyle Creates a ID2D1StrokeStyle1 object.
ID2D1Factory1::GetEffectProperties Retrieves the properties of an effect.
ID2D1Factory1::GetRegisteredEffects Returns the class IDs of the currently registered effects and global effects on this factory.
ID2D1Factory1::RegisterEffectFromStream Registers an effect within the factory instance with the property XML specified as a stream.
ID2D1Factory1::RegisterEffectFromString Registers an effect within the factory instance with the property XML specified as a string.
ID2D1Factory1::UnregisterEffect Unregisters an effect within the factory instance that corresponds to the classId provided.
ID2D1Factory1::CreateDrawingStateBlock Creates a new drawing state block, this can be used in subsequent SaveDrawingState and RestoreDrawingState operations on the render target.

Remarks

The ID2D1Factory1 interface is used to create devices, register and unregister effects, and enumerate effects properties. Effects are registered and unregistered globally. The registration APIs are placed on this interface for convenience.

Requirements

   
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1.h

See Also

ID2D1Device

ID2D1Factory

Multithreaded Direct2D Apps