ID2D1Factory1 interface
Creates Direct2D resources.
When to implement
Custom implementations are not supported.
Members
The ID2D1Factory1 interface inherits from ID2D1Factory. ID2D1Factory1 also has these types of members:
Methods
The ID2D1Factory1 interface has these methods.
| Method | Description |
|---|---|
| CreateDevice |
Creates a ID2D1Device object. |
| CreateDrawingStateBlock | Overloaded. Creates a new drawing state block, this can be used in subsequent SaveDrawingState and RestoreDrawingState operations on the render target. |
| CreateGdiMetafile |
Creates a new ID2D1GdiMetafile object that you can use to replay metafile content. |
| CreatePathGeometry |
Creates an ID2D1PathGeometry1 object. |
| CreateStrokeStyle | Overloaded. Creates a ID2D1StrokeStyle1 object. |
| GetEffectProperties |
Retrieves the properties of an effect. |
| GetRegisteredEffects |
Returns the class IDs of the currently registered effects and global effects on this factory. |
| RegisterEffectFromStream |
Registers an effect within the factory instance with the property XML specified as a stream. |
| RegisterEffectFromString |
Registers an effect within the factory instance with the property XML specified as a string. |
| UnregisterEffect |
Unregisters an effect within the factory instance that corresponds to the classId provided. |
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 | 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 |
|
|
Library |
|
|
DLL |
|
See also