Apitron.PDF.Rasterizer library for .NET
Assembly: Apitron.PDF.Rasterizer (in Apitron.PDF.Rasterizer.dll) Version: 3.0.154.0 (3.0.154.0)
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.
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: BitmapThe 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
Exception | Condition |
---|---|
ArgumentNullException | If externalBitmap is null. |
ArgumentException | If Width or Height of the externalBitmap is zero or less. |
ArgumentNullException | If settings is null. |
See Also