Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

MethodDescription
CreateDevice

Creates a device that represents a display adapter.

CreateDrawingStateBlock Overloaded.

Creates a new drawing state block, this can be used in subsequent SaveDrawingState and RestoreDrawingState operations on the render target.

CreateDrawingStateBlock (D2D1_DRAWING_STATE_DESCRIPTION1&, ID2D1DrawingStateBlock1**)

Creates a new drawing state block, this can be used in subsequent SaveDrawingState and RestoreDrawingState operations on the render target.

CreateDrawingStateBlock (D2D1_DRAWING_STATE_DESCRIPTION1*, IDWriteRenderingParams*, ID2D1DrawingStateBlock1**)

Creates a new drawing state block, this can be used in subsequent SaveDrawingState and RestoreDrawingState operations on the render target.

CreateDrawingStateBlock (ID2D1DrawingStateBlock1**)

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]

Header

D2d1_1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1Factory
ID2D1Device
Multithreaded Direct2D Apps

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.