PeachDrawing.PDF.PdfCanvas

PdfCanvas.CreateMeasuring Method

Overloads  
CreateMeasuring(PdfRenderContext, double, double) Creates a canvas that draws nothing: it exists to measure text and lay content out against a nominal page size. Dispose it when the measuring is done.
CreateMeasuring(PdfRenderContext, Size) Creates a canvas that draws nothing: it exists to measure text and lay content out against a nominal page size. Dispose it when the measuring is done.

PdfCanvas.CreateMeasuring(PdfRenderContext, double, double) Method

Creates a canvas that draws nothing: it exists to measure text and lay content out against a nominal page size. Dispose it when the measuring is done.

public static PeachDrawing.PDF.PdfCanvas CreateMeasuring(PeachDrawing.PDF.PdfRenderContext renderContext, double widthPoints, double heightPoints);

Parameters

renderContext PdfRenderContext

the context whose fonts are measured and whose PixelsPerPoint sets the unit

widthPoints System.Double

the nominal width, in points

heightPoints System.Double

the nominal height, in points

Returns

PdfCanvas
a canvas on which drawing has no effect

PdfCanvas.CreateMeasuring(PdfRenderContext, Size) Method

Creates a canvas that draws nothing: it exists to measure text and lay content out against a nominal page size. Dispose it when the measuring is done.

public static PeachDrawing.PDF.PdfCanvas CreateMeasuring(PeachDrawing.PDF.PdfRenderContext renderContext, PeachDrawing.Core.Size size);

Parameters

renderContext PdfRenderContext

the context whose fonts are measured and whose PixelsPerPoint sets the unit

size Size

Returns

PdfCanvas
a canvas on which drawing has no effect