Set the content of the object as a Bitmap




void SetBitmap(System.Drawing.Bitmap bitmap, bool transparent)

[Visual Basic]
Sub SetBitmap(bitmap As System.Drawing.Bitmap, transparent As Boolean)



Name Description
bitmap The Bitmap containing the image.
transparent Whether any transparency information should be preserved.




Set the content of the object as a System.Drawing.Bitmap.

If transparency is required, the PixMap must be contained within an ObjectSoup.

After the Bitmap has been set, the PixMap will be uncompressed. You may wish to compress it using a call like CompressJpeg or CompressFlate.




See the Doc.AddXObject method..