Class D2D1Resource
The root interface for all resources in D2D.
Inheritance
D2D1Resource
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1Resource : DXComObject, IDisposable
Constructors
| Edit this page View SourceD2D1Resource(nint)
Initializes a new instance of the D2D1Resource class.
Declaration
public D2D1Resource(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1ResourceGuid
The interface GUID.
Declaration
public static readonly Guid D2D1ResourceGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceGetFactory()
Retrieve the factory associated with this resource.
Declaration
public D2D1Factory GetFactory()
Returns
| Type | Description |
|---|---|
| D2D1Factory | The factory that created this resource. |