[]
ID2D1Factory
[Guid("06152247-6f50-465a-9245-118bfd3b6007")]
public class Factory : ComObject, IDisposable, IUnknown
Initializes a new instance of the Factory class.
public Factory(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT ID2D1Factory::CreateDCRenderTarget([In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1DCRenderTarget** dcRenderTarget)
public DeviceContextRenderTarget CreateDCRenderTarget(ref RenderTargetProperties renderTargetProperties)
renderTargetProperties
RenderTargetPropertiesHRESULT 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)
drawingStateDescription
DrawingStateDescription?textRenderingParams
RenderingParamsHRESULT ID2D1Factory::CreateDxgiSurfaceRenderTarget([In] IDXGISurface* dxgiSurface,[In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1RenderTarget** renderTarget)
public RenderTarget CreateDxgiSurfaceRenderTarget(Surface dxgiSurface, ref RenderTargetProperties renderTargetProperties)
dxgiSurface
SurfacerenderTargetProperties
RenderTargetPropertiesHRESULT ID2D1Factory::CreateEllipseGeometry([In] const D2D1_ELLIPSE* ellipse,[Out, Fast] ID2D1EllipseGeometry** ellipseGeometry)
public EllipseGeometry CreateEllipseGeometry(Ellipse ellipse)
ellipse
EllipseHRESULT 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)
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)
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)
renderTargetProperties
RenderTargetPropertieshwndRenderTargetProperties
HwndRenderTargetPropertiesHRESULT ID2D1Factory::CreatePathGeometry([Out, Fast] ID2D1PathGeometry** pathGeometry)
public PathGeometry CreatePathGeometry()
HRESULT ID2D1Factory::CreateRectangleGeometry([In] const D2D_RECT_F* rectangle,[Out, Fast] ID2D1RectangleGeometry** rectangleGeometry)
public RectangleGeometry CreateRectangleGeometry(RectF rectangle)
rectangle
RectFHRESULT ID2D1Factory::CreateRoundedRectangleGeometry([In] const D2D1_ROUNDED_RECT* roundedRectangle,[Out, Fast] ID2D1RoundedRectangleGeometry** roundedRectangleGeometry)
public RoundedRectangleGeometry CreateRoundedRectangleGeometry(ref RoundedRectangle roundedRectangle)
roundedRectangle
RoundedRectangleHRESULT 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)
strokeStyleProperties
StrokeStylePropertiesdashes
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)
strokeStyleProperties
StrokeStylePropertiesHRESULT ID2D1Factory::CreateTransformedGeometry([In] ID2D1Geometry* sourceGeometry,[In] const D2D_MATRIX_3X2_F* transform,[Out, Fast] ID2D1TransformedGeometry** transformedGeometry)
public TransformedGeometry CreateTransformedGeometry(Geometry sourceGeometry, ref Matrix3x2 transform)
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)
target
BitmaprenderTargetProperties
RenderTargetPropertiesvoid ID2D1Factory::GetDesktopDpi([Out] float* dpiX,[Out] float* dpiY)
public void GetDesktopDpi(out float dpiX, out float dpiY)
dpiX
floatdpiY
floatHRESULT ID2D1Factory::ReloadSystemMetrics()
public void ReloadSystemMetrics()
Performs an explicit conversion from System.IntPtr to Factory.
public static explicit operator Factory(IntPtr nativePointer)
nativePointer
System.IntPtr