PageRender Method (Bitmap, RenderingSettings, ErrorLogger)

Apitron PDF Rasterizer help
Apitron.PDF.Rasterizer library for .NET
Renders the page to an external bitmap with pixel format Format32bppArgb.

Namespace:  Apitron.PDF.Rasterizer
Assembly:  Apitron.PDF.Rasterizer (in Apitron.PDF.Rasterizer.dll) Version: 3.0.154.0 (3.0.154.0)
Syntax

public Bitmap Render(
	Bitmap externalBitmap,
	RenderingSettings settings,
	ErrorLogger errorLogger = null
)

Parameters

externalBitmap
Type: System.DrawingBitmap
An external bitmap object which will be used as rendering canvas. Content will be drawn using its dimensions. Can't be null.
settings
Type: Apitron.PDF.Rasterizer.ConfigurationRenderingSettings
The rendering settings, can't be null.
errorLogger (Optional)
Type: Apitron.PDF.Rasterizer.ErrorHandlingErrorLogger
An optional error logger object.

Return Value

Type: Bitmap
The object passed as externalBitmap representing the content of the page, if rendering fails null will be returned. Any errors encountered will be logged to errorLogger if present.
Exceptions

ExceptionCondition
ArgumentNullException If externalBitmap is null.
ArgumentException If Width or Height of the externalBitmap is zero or less.
ArgumentNullException If settings is null.
See Also

Reference