Common Reference > Document Class > RenderBitmap Method

Document.RenderBitmap Method

Return document rendered through raster engine as a Bitmap object.

Overloads

Result

The result of this call is a Bitmap object, rendered by default at 96dpi. Ths is may then be saved to disk in any of the common image formats, typically PNG or JPEG to benefit from image compression. GIF is not recommended for images with gradient fills as it is limited to 256 colours and is likely to show some banding.

For images to be used in printed material, you probably should use at least 300dpi to get acceptable quality.

The text will be anti-aliased by default, but you may over-ride the text-rendering algorithm by passing in the standard .Net rendering hint as a final option.

Example

   doc = lf.RenderDocument(1);  // Firt report page
   bmp=doc.RenderBitmap(300);

See also ...

SharpPlot.RenderBitmap Method | Document.Members | Document.RenderMetafile Method | Document.SaveImage Method


Send comments on this topic
© Dyalog Ltd 2021