Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / DeviceContextRenderTarget Class / Create Method
an instance of Factory
The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. To enable the device context (DC) render target to work with GDI, set the DXGI format to GrapeCity.Documents.DX.DXGI.Format.B8G8R8A8_UNorm and the alpha mode to AlphaMode.Premultiplied or D2D1_ALPHA_MODE_IGNORE. For more information about pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.

In This Topic
    Create Method (DeviceContextRenderTarget)
    In This Topic
    Creates a render target that draws to a Windows Graphics Device Interface (GDI) device context.
    Syntax
    'Declaration
     
    Public Shared Function Create( _
       ByVal factory As Factory, _
       ByRef properties As RenderTargetProperties _
    ) As DeviceContextRenderTarget

    Parameters

    factory
    an instance of Factory
    properties
    The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. To enable the device context (DC) render target to work with GDI, set the DXGI format to GrapeCity.Documents.DX.DXGI.Format.B8G8R8A8_UNorm and the alpha mode to AlphaMode.Premultiplied or D2D1_ALPHA_MODE_IGNORE. For more information about pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.
    See Also