Create(RenderTarget,CompatibleRenderTargetOptions,Nullable<Size2F>,Nullable<Size2L>,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.
Syntax
Parameters
- renderTarget
- an instance of RenderTarget
- options
- A value that specifies whether the new render target must be compatible with GDI.
- desiredSize
- The desired size of the new render target in device-independent pixels if it should be different from the original render target. For more information, see the Remarks section.
- desiredPixelSize
- The desired size of the new render target in pixels if it should be different from the original render target. For more information, see the Remarks section.
- 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