C# Class Fonet.Image.FonetImage

A bitmap image that will be referenced by fo:external-graphic.
显示文件 Open project: Mimeo/Fo.Net Class Usage Examples

Public Methods

Method Description
FonetImage ( string href, byte imageData ) : System

Constructs a new FonetImage using the supplied bitmap.

Does not hold a reference to the passed bitmap. Instead the image data is extracted from bitmap on construction.

Private Methods

Method Description
ExtractImage ( Bitmap bitmap ) : void

Extracts the raw data from the image into a byte array suitable for including in the PDF document. The image is always extracted as a 24-bit RGB image, regardless of it's original colour space and colour depth.

ExtractOtherImageBits ( Bitmap bitmap ) : void
GetPixelSize ( Bitmap bitmap ) : Point
LockBitmap ( Bitmap bitmap ) : void
PixelAt ( int x, int y ) : PixelData*
UnlockBitmap ( Bitmap bitmap ) : void

Method Details

FonetImage() public method

Constructs a new FonetImage using the supplied bitmap.
Does not hold a reference to the passed bitmap. Instead the image data is extracted from bitmap on construction.
public FonetImage ( string href, byte imageData ) : System
href string The location of bitmap
imageData byte The image data
return System