PeachDrawing

PeachDrawing.RasterCanvas

RasterCanvas.PixelsPerPoint Property

The scale between this graphics context’s own coordinate space and true points (1/72 inch): a backend whose coordinates are inflated relative to a point (for example a layout space running at a higher pixels-per-inch than 72) reports that inflation here. 1.0 (the base, no-op default) is correct for any Canvas whose coordinate space is not inflated this way; a backend whose space is overrides this with its real value. A caller that needs to compute a transform matrix whose *linear* (scale/rotation) part won’t itself be divided by this factor before use - a backend may divide only a matrix’s translation, not M11/M12/M21/M22 - reads this to pre-divide that part itself (an SVG viewBox-to-viewport transform is such a case: its “scale” is a ratio of an inflated length to a never-inflated, dimensionless user unit, so it is not already scale-neutral the way an ordinary scale() transform is).

public override double PixelsPerPoint { get; }

Property Value

System.Double