[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Factory

Class Factory

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1Factory

[Guid("06152247-6f50-465a-9245-118bfd3b6007")]
public class Factory : ComObject, IDisposable, IUnknown
Inheritance
object
Factory
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Factory(IntPtr)

Initializes a new instance of the Factory class.

public Factory(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

CreateDCRenderTarget(ref RenderTargetProperties)

HRESULT ID2D1Factory::CreateDCRenderTarget([In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1DCRenderTarget** dcRenderTarget)

public DeviceContextRenderTarget CreateDCRenderTarget(ref RenderTargetProperties renderTargetProperties)

Parameters

renderTargetProperties RenderTargetProperties

Returns

DeviceContextRenderTarget

CreateDrawingStateBlock(DrawingStateDescription?, RenderingParams)

HRESULT ID2D1Factory::CreateDrawingStateBlock([In, Optional] const D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription,[In, Optional] IDWriteRenderingParams* textRenderingParams,[Out, Fast] ID2D1DrawingStateBlock** drawingStateBlock)

public DrawingStateBlock CreateDrawingStateBlock(DrawingStateDescription? drawingStateDescription, RenderingParams textRenderingParams)

Parameters

drawingStateDescription DrawingStateDescription?
textRenderingParams RenderingParams

Returns

DrawingStateBlock

CreateDxgiSurfaceRenderTarget(Surface, ref RenderTargetProperties)

HRESULT ID2D1Factory::CreateDxgiSurfaceRenderTarget([In] IDXGISurface* dxgiSurface,[In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1RenderTarget** renderTarget)

public RenderTarget CreateDxgiSurfaceRenderTarget(Surface dxgiSurface, ref RenderTargetProperties renderTargetProperties)

Parameters

dxgiSurface Surface
renderTargetProperties RenderTargetProperties

Returns

RenderTarget

CreateEllipseGeometry(Ellipse)

HRESULT ID2D1Factory::CreateEllipseGeometry([In] const D2D1_ELLIPSE* ellipse,[Out, Fast] ID2D1EllipseGeometry** ellipseGeometry)

public EllipseGeometry CreateEllipseGeometry(Ellipse ellipse)

Parameters

ellipse Ellipse

Returns

EllipseGeometry

CreateGeometryGroup(FillMode, ComArray<Geometry>, int)

HRESULT ID2D1Factory::CreateGeometryGroup([In] D2D1_FILL_MODE fillMode,[In, Buffer] ID2D1Geometry** geometries,[In] unsigned int geometriesCount,[Out, Fast] ID2D1GeometryGroup** geometryGroup)

public GeometryGroup CreateGeometryGroup(FillMode fillMode, ComArray<Geometry> geometries, int geometriesCount)

Parameters

fillMode FillMode
geometries ComArray<Geometry>
geometriesCount int

Returns

GeometryGroup

CreateGeometryGroup(FillMode, Geometry[], int)

HRESULT ID2D1Factory::CreateGeometryGroup([In] D2D1_FILL_MODE fillMode,[In, Buffer] ID2D1Geometry** geometries,[In] unsigned int geometriesCount,[Out, Fast] ID2D1GeometryGroup** geometryGroup)

public GeometryGroup CreateGeometryGroup(FillMode fillMode, Geometry[] geometries, int geometriesCount)

Parameters

fillMode FillMode
geometries Geometry[]
geometriesCount int

Returns

GeometryGroup

CreateHwndRenderTarget(ref RenderTargetProperties, HwndRenderTargetProperties)

HRESULT ID2D1Factory::CreateHwndRenderTarget([In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[In] const D2D1_HWND_RENDER_TARGET_PROPERTIES* hwndRenderTargetProperties,[Out, Fast] ID2D1HwndRenderTarget** hwndRenderTarget)

public WindowRenderTarget CreateHwndRenderTarget(ref RenderTargetProperties renderTargetProperties, HwndRenderTargetProperties hwndRenderTargetProperties)

Parameters

renderTargetProperties RenderTargetProperties
hwndRenderTargetProperties HwndRenderTargetProperties

Returns

WindowRenderTarget

CreatePathGeometry()

HRESULT ID2D1Factory::CreatePathGeometry([Out, Fast] ID2D1PathGeometry** pathGeometry)

public PathGeometry CreatePathGeometry()

Returns

PathGeometry

CreateRectangleGeometry(RectF)

HRESULT ID2D1Factory::CreateRectangleGeometry([In] const D2D_RECT_F* rectangle,[Out, Fast] ID2D1RectangleGeometry** rectangleGeometry)

public RectangleGeometry CreateRectangleGeometry(RectF rectangle)

Parameters

rectangle RectF

Returns

RectangleGeometry

CreateRoundedRectangleGeometry(ref RoundedRectangle)

HRESULT ID2D1Factory::CreateRoundedRectangleGeometry([In] const D2D1_ROUNDED_RECT* roundedRectangle,[Out, Fast] ID2D1RoundedRectangleGeometry** roundedRectangleGeometry)

public RoundedRectangleGeometry CreateRoundedRectangleGeometry(ref RoundedRectangle roundedRectangle)

Parameters

roundedRectangle RoundedRectangle

Returns

RoundedRectangleGeometry

CreateStrokeStyle(ref StrokeStyleProperties, float[])

HRESULT ID2D1Factory::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle** strokeStyle)

public StrokeStyle CreateStrokeStyle(ref StrokeStyleProperties strokeStyleProperties, float[] dashes)

Parameters

strokeStyleProperties StrokeStyleProperties
dashes float[]

Returns

StrokeStyle

CreateStrokeStyle(ref StrokeStyleProperties)

HRESULT ID2D1Factory::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle** strokeStyle)

public StrokeStyle CreateStrokeStyle(ref StrokeStyleProperties strokeStyleProperties)

Parameters

strokeStyleProperties StrokeStyleProperties

Returns

StrokeStyle

CreateTransformedGeometry(Geometry, ref Matrix3x2)

HRESULT ID2D1Factory::CreateTransformedGeometry([In] ID2D1Geometry* sourceGeometry,[In] const D2D_MATRIX_3X2_F* transform,[Out, Fast] ID2D1TransformedGeometry** transformedGeometry)

public TransformedGeometry CreateTransformedGeometry(Geometry sourceGeometry, ref Matrix3x2 transform)

Parameters

sourceGeometry Geometry
transform Matrix3x2

Returns

TransformedGeometry

CreateWicBitmapRenderTarget(Bitmap, ref RenderTargetProperties)

HRESULT ID2D1Factory::CreateWicBitmapRenderTarget([In] IWICBitmap* target,[In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1RenderTarget** renderTarget)

public WicRenderTarget CreateWicBitmapRenderTarget(Bitmap target, ref RenderTargetProperties renderTargetProperties)

Parameters

target Bitmap
renderTargetProperties RenderTargetProperties

Returns

WicRenderTarget

GetDesktopDpi(out float, out float)

void ID2D1Factory::GetDesktopDpi([Out] float* dpiX,[Out] float* dpiY)

public void GetDesktopDpi(out float dpiX, out float dpiY)

Parameters

dpiX float
dpiY float

ReloadSystemMetrics()

HRESULT ID2D1Factory::ReloadSystemMetrics()

public void ReloadSystemMetrics()

Operators

explicit operator Factory(IntPtr)

Performs an explicit conversion from System.IntPtr to Factory.

public static explicit operator Factory(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Factory