PeachDrawing.Core

PeachDrawing.Core.RasterSurface

RasterSurface(int, int, int, int, double, double) Constructor

Creates a cleared, premultiplied-RGBA8 pixel buffer of width x height pixels.

public RasterSurface(int width, int height, int gridX, int gridY, double pixelsPerUnitX, double pixelsPerUnitY);

Parameters

width System.Int32

the buffer’s width, in pixels

height System.Int32

the buffer’s height, in pixels

gridX System.Int32

the surface’s left edge, in whole pixels of the grid it sits on

gridY System.Int32

the surface’s top edge, in whole pixels of the grid it sits on

pixelsPerUnitX System.Double

pixels per layout unit, horizontally

pixelsPerUnitY System.Double

pixels per layout unit, vertically