RasterRenderBuffer Class (original) (raw)

Summary

Destination buffer information required for rendering a source RasterImage. Can be used to render an image to a Windows Runtime WriteableBitmap object or HTML Canvas.

Syntax

public class RasterRenderBuffer  

Remarks

The RasterImageRenderer class provides support for rendering a LEADTOOLS RasterImage into a generic buffer containing 32-bit image data. This buffer can be the surface of a Windows Runtime WriteableBitmap object or the image data of HTML Canvas. The source RasterImage can have any bits/pixel or color order supported by LEADTOOLS.

To render any portion of a raster image into a Windows Runtime WriteableBitmap:

To render any portion of a raster image into a HTML Canvas:

You can also use an instance of RasterImageRenderProperties and change any of its properties to control the speed and quality of the render operation. Such as performing scale to gray or resample rendering.

RasterRenderBuffer also contains the ToRasterImage helper method that allows you to convert the data inside a RasterRenderBuffer into a RasterImage object. This can be used to create a RasterImage from a Windows Runtime WriteableBitmap or HTML Canvas.