PeachDrawing.Core

PeachDrawing.Core

RasterRegion Class

A pixel surface handed out by BeginRasterSurface(Rect, Nullable<double>): paint into Graphics, post-process Surface if needed, then give the surface back to the canvas that produced it with DrawRaster(RasterSurface). Disposing releases the graphics and the pixel buffer.

public sealed class RasterRegion : System.IDisposable

Inheritance System.Object → RasterRegion

Implements System.IDisposable

Constructors  
RasterRegion(Canvas, RasterSurface) Wraps a raster graphics that paints into surface.
Properties  
Graphics A canvas whose coordinate system is the requesting canvas’s own, so paint code needs no translation.
Surface The pixels Graphics paints into.
Methods  
Dispose() Disposes Graphics and releases Surface’s pixel buffer.