Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / BitmapRenderTarget Class / Create Method / Create(RenderTarget,CompatibleRenderTargetOptions,Nullable<PixelFormat>) Method
an instance of RenderTarget
A value that specifies whether the new render target must be compatible with GDI.
The desired pixel format and alpha mode of the new render target. If the pixel format is set to DXGI_FORMAT_UNKNOWN, the new render target uses the same pixel format as the original render target. If the alpha mode is AlphaMode.Unknown, the alpha mode of the new render target defaults to D2D1_ALPHA_MODE_PREMULTIPLIED. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.

In This Topic
    Create(RenderTarget,CompatibleRenderTargetOptions,Nullable<PixelFormat>) Method
    In This Topic
    Creates a bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target with same size and pixel size.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal renderTarget As RenderTarget, _
       ByVal options As CompatibleRenderTargetOptions, _
       ByVal desiredFormat As System.Nullable(Of PixelFormat) _
    ) As BitmapRenderTarget
    public static BitmapRenderTarget Create( 
       RenderTarget renderTarget,
       CompatibleRenderTargetOptions options,
       System.Nullable<PixelFormat> desiredFormat
    )

    Parameters

    renderTarget
    an instance of RenderTarget
    options
    A value that specifies whether the new render target must be compatible with GDI.
    desiredFormat
    The desired pixel format and alpha mode of the new render target. If the pixel format is set to DXGI_FORMAT_UNKNOWN, the new render target uses the same pixel format as the original render target. If the alpha mode is AlphaMode.Unknown, the alpha mode of the new render target defaults to D2D1_ALPHA_MODE_PREMULTIPLIED. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.
    See Also