PeachDrawing

PeachDrawing.RasterCanvas

RasterCanvas(RenderContext, RasterSurface, double) Constructor

Builds a canvas that paints into surface.

public RasterCanvas(PeachDrawing.Core.RenderContext adapter, PeachDrawing.Core.RasterSurface surface, double pixelsPerPoint);

Parameters

adapter RenderContext

the render context this canvas resolves colors, fonts and paint objects from

surface RasterSurface

the pixel buffer this canvas paints into

pixelsPerPoint System.Double

the scale between this canvas’s own coordinate space and true PDF points - see PixelsPerPoint; 1 for a standalone canvas, where a layout unit is a device pixel directly