PDFRasterizer.NET 4.0 is now available. Supports .NET Core. Renders pixel-perfectly.

Constructor ImageShape

Namespace TallComponents.PDF.Shapes
Class ImageShape

Create a new ImageShape from a System.Drawing.Bitmap and select a frame index. This constructor allows you to draw to a GDI+ surface and pass it to the ImageShape class without intermediate, temporary file.


public ImageShape(Bitmap bitmapInt32 frameIndexBoolean disposeBitmap)


Bitmap bitmap
In-memory GDI+ bitmap object.

Int32 frameIndex
0-based frame index.

Boolean disposeBitmap
The bitmap will be disposed by this component (callee)

When setting disposeBitmap to true, the bitmap is disposed when this Image class is released from memory. Note that if this instance of the bitmap is used multiple times an error will be thrown if this bitmap is used after this Image class is removed from memory

Download PDFKit.NET 4.0
We will send you a download link
  • This field is for validation purposes and should be left unchanged.
Why do we ask your email address?
We send tips that speed up your evaluation
We let you know about bug fixes
You can always unsubscribe with one click
We never share your address with a 3rd party
Thank you for your download

We have sent an email with a download link.