wxPdfImage Class Reference

Class representing image objects. (For internal use only). More...

#include <pdfimage.h>

List of all members.

Public Member Functions

 wxPdfImage (wxPdfDocument *document, int index, const wxString &name, const wxString &type)
 Constructor.
 wxPdfImage (wxPdfDocument *document, int index, const wxString &name, const wxImage &image)
 Constructor.
 wxPdfImage (wxPdfDocument *document, int index, const wxString &name, wxInputStream &stream, const wxString &mimeType)
 Constructor.
virtual ~wxPdfImage ()
 Destructor.
void SetIndex (int index)
 Set image index.
int GetIndex ()
 Get image index.
void SetObjIndex (int n)
 Set object index.
int GetObjIndex ()
 Get object index.
void SetMaskImage (int maskImage)
 Set mask flag.
int GetMaskImage ()
 Check mask flag.
void SetType (const wxString &type)
 Set image type.
wxString GetType ()
 Get image type.
bool IsFormObject ()
 Check whether image has to be handled as a form object.
void SetName (const wxString &name)
 Set image file name.
wxString GetName ()
 Get image file name.
int GetWidth ()
 Get image width in pixels.
int GetHeight ()
 Get image height in pixels.
int GetX ()
 Get image offset in X direction.
int GetY ()
 Get image offset in Y direction.
wxString GetColorSpace ()
 Get color space.
int GetBitsPerComponent ()
 Get bits per component.
wxString GetF ()
 Get compression filter specification.
wxString GetParms ()
 Get additional PDF parameter.
int GetPaletteSize ()
 Get palette size.
char * GetPalette ()
 Get palette data.
int GetTransparencySize ()
 Get transparency size.
char * GetTransparency ()
 Get transparency data.
int GetDataSize ()
 Get image data size.
char * GetData ()
 Get image data.
bool Parse ()
 Parse image file.

Protected Member Functions

bool ConvertWxImage (const wxImage &image)
 Extract info from a wxImage.
bool ParseJPG (wxInputStream *imageStream)
 Extract info from a JPEG file.
bool ParsePNG (wxInputStream *imageStream)
 Extract info from a PNG file.
bool ParseGIF (wxInputStream *imageStream)
 Extract info from a GIF file.
bool ParseWMF (wxInputStream *imageStream)
 Extract info from a WMF file.
int ReadIntBE (wxInputStream *imageStream)
 Read a 4-byte integer from file (big endian).
int ReadIntLE (wxInputStream *imageStream)
 Read a 4-byte integer from file (little endian).
unsigned int ReadUIntBE (wxInputStream *imageStream)
 Read a 4-byte unsigned integer from file (big endian).
unsigned int ReadUIntLE (wxInputStream *imageStream)
 Read a 4-byte unsigned integer from file (little endian).
short ReadShortBE (wxInputStream *imageStream)
 Read a 2-byte integer from file (big endian).
short ReadShortLE (wxInputStream *imageStream)
 Read a 2-byte integer from file (little endian).
unsigned short ReadUShortBE (wxInputStream *imageStream)
 Read a unsigned 2-byte integer from file (big endian).
unsigned short ReadUShortLE (wxInputStream *imageStream)
 Read a unsigned 2-byte integer from file (little endian).

Static Protected Member Functions

static wxFileSystem * GetFileSystem ()
 Get the file system for accessing image files.

Protected Attributes

wxPdfDocumentm_document
 Document this image belongs to.
int m_index
 Index number of this image.
int m_n
 Image object index.
wxString m_type
 Image type.
wxString m_name
 Image name.
int m_maskImage
 Id of associated image mask.
int m_width
 Image width in pixels.
int m_height
 Image height in pixels.
wxString m_cs
 Colorspace.
char m_bpc
 Bits per color.
wxString m_f
 Compression method.
wxString m_parms
 Additional PDF parameters.
int m_palSize
 Size of palette.
char * m_pal
 Palette data.
int m_trnsSize
 Transparency color size.
char * m_trns
 Transparency color data.
int m_dataSize
 Image data size.
char * m_data
 Image data.
bool m_isFormObj
 Flag whether image must be treated as form object.
int m_x
 Offset in X direction.
int m_y
 Offset in Y direction.
bool m_fromWxImage
 Flag whether image originated from wxImage.
bool m_validWxImage
 Flag whether wxImage conversion went ok.
wxFSFile * m_imageFile
 File system file of image.
wxInputStream * m_imageStream
 Stream containing the image data.

Static Protected Attributes

static wxFileSystem * ms_fileSystem
 File system for accessing image files.


Detailed Description

Class representing image objects. (For internal use only).


Constructor & Destructor Documentation

wxPdfImage::wxPdfImage ( wxPdfDocument document,
int  index,
const wxString &  name,
const wxString &  type 
)

Constructor.

wxPdfImage::wxPdfImage ( wxPdfDocument document,
int  index,
const wxString &  name,
const wxImage &  image 
)

Constructor.

wxPdfImage::wxPdfImage ( wxPdfDocument document,
int  index,
const wxString &  name,
wxInputStream &  stream,
const wxString &  mimeType 
)

Constructor.

wxPdfImage::~wxPdfImage (  )  [virtual]

Destructor.


Member Function Documentation

void wxPdfImage::SetIndex ( int  index  )  [inline]

Set image index.

int wxPdfImage::GetIndex (  )  [inline]

Get image index.

void wxPdfImage::SetObjIndex ( int  n  )  [inline]

Set object index.

int wxPdfImage::GetObjIndex (  )  [inline]

Get object index.

void wxPdfImage::SetMaskImage ( int  maskImage  )  [inline]

Set mask flag.

int wxPdfImage::GetMaskImage (  )  [inline]

Check mask flag.

void wxPdfImage::SetType ( const wxString &  type  )  [inline]

Set image type.

wxString wxPdfImage::GetType (  )  [inline]

Get image type.

bool wxPdfImage::IsFormObject (  )  [inline]

Check whether image has to be handled as a form object.

void wxPdfImage::SetName ( const wxString &  name  )  [inline]

Set image file name.

wxString wxPdfImage::GetName (  )  [inline]

Get image file name.

int wxPdfImage::GetWidth (  )  [inline]

Get image width in pixels.

int wxPdfImage::GetHeight (  )  [inline]

Get image height in pixels.

int wxPdfImage::GetX (  )  [inline]

Get image offset in X direction.

int wxPdfImage::GetY (  )  [inline]

Get image offset in Y direction.

wxString wxPdfImage::GetColorSpace (  )  [inline]

Get color space.

int wxPdfImage::GetBitsPerComponent (  )  [inline]

Get bits per component.

wxString wxPdfImage::GetF (  )  [inline]

Get compression filter specification.

wxString wxPdfImage::GetParms (  )  [inline]

Get additional PDF parameter.

int wxPdfImage::GetPaletteSize (  )  [inline]

Get palette size.

char* wxPdfImage::GetPalette (  )  [inline]

Get palette data.

int wxPdfImage::GetTransparencySize (  )  [inline]

Get transparency size.

char* wxPdfImage::GetTransparency (  )  [inline]

Get transparency data.

int wxPdfImage::GetDataSize (  )  [inline]

Get image data size.

char* wxPdfImage::GetData (  )  [inline]

Get image data.

bool wxPdfImage::Parse (  ) 

Parse image file.

bool wxPdfImage::ConvertWxImage ( const wxImage &  image  )  [protected]

Extract info from a wxImage.

bool wxPdfImage::ParseJPG ( wxInputStream *  imageStream  )  [protected]

Extract info from a JPEG file.

bool wxPdfImage::ParsePNG ( wxInputStream *  imageStream  )  [protected]

Extract info from a PNG file.

bool wxPdfImage::ParseGIF ( wxInputStream *  imageStream  )  [protected]

Extract info from a GIF file.

bool wxPdfImage::ParseWMF ( wxInputStream *  imageStream  )  [protected]

Extract info from a WMF file.

int wxPdfImage::ReadIntBE ( wxInputStream *  imageStream  )  [protected]

Read a 4-byte integer from file (big endian).

int wxPdfImage::ReadIntLE ( wxInputStream *  imageStream  )  [protected]

Read a 4-byte integer from file (little endian).

unsigned int wxPdfImage::ReadUIntBE ( wxInputStream *  imageStream  )  [protected]

Read a 4-byte unsigned integer from file (big endian).

unsigned int wxPdfImage::ReadUIntLE ( wxInputStream *  imageStream  )  [protected]

Read a 4-byte unsigned integer from file (little endian).

short wxPdfImage::ReadShortBE ( wxInputStream *  imageStream  )  [protected]

Read a 2-byte integer from file (big endian).

short wxPdfImage::ReadShortLE ( wxInputStream *  imageStream  )  [protected]

Read a 2-byte integer from file (little endian).

unsigned short wxPdfImage::ReadUShortBE ( wxInputStream *  imageStream  )  [protected]

Read a unsigned 2-byte integer from file (big endian).

unsigned short wxPdfImage::ReadUShortLE ( wxInputStream *  imageStream  )  [protected]

Read a unsigned 2-byte integer from file (little endian).

wxFileSystem * wxPdfImage::GetFileSystem (  )  [static, protected]

Get the file system for accessing image files.


Member Data Documentation

wxPdfDocument* wxPdfImage::m_document [protected]

Document this image belongs to.

int wxPdfImage::m_index [protected]

Index number of this image.

int wxPdfImage::m_n [protected]

Image object index.

wxString wxPdfImage::m_type [protected]

Image type.

wxString wxPdfImage::m_name [protected]

Image name.

int wxPdfImage::m_maskImage [protected]

Id of associated image mask.

int wxPdfImage::m_width [protected]

Image width in pixels.

int wxPdfImage::m_height [protected]

Image height in pixels.

wxString wxPdfImage::m_cs [protected]

Colorspace.

char wxPdfImage::m_bpc [protected]

Bits per color.

wxString wxPdfImage::m_f [protected]

Compression method.

wxString wxPdfImage::m_parms [protected]

Additional PDF parameters.

int wxPdfImage::m_palSize [protected]

Size of palette.

char* wxPdfImage::m_pal [protected]

Palette data.

int wxPdfImage::m_trnsSize [protected]

Transparency color size.

char* wxPdfImage::m_trns [protected]

Transparency color data.

int wxPdfImage::m_dataSize [protected]

Image data size.

char* wxPdfImage::m_data [protected]

Image data.

bool wxPdfImage::m_isFormObj [protected]

Flag whether image must be treated as form object.

int wxPdfImage::m_x [protected]

Offset in X direction.

int wxPdfImage::m_y [protected]

Offset in Y direction.

bool wxPdfImage::m_fromWxImage [protected]

Flag whether image originated from wxImage.

bool wxPdfImage::m_validWxImage [protected]

Flag whether wxImage conversion went ok.

wxFSFile* wxPdfImage::m_imageFile [protected]

File system file of image.

wxInputStream* wxPdfImage::m_imageStream [protected]

Stream containing the image data.

wxFileSystem * wxPdfImage::ms_fileSystem [static, protected]

File system for accessing image files.


The documentation for this class was generated from the following files:
Generated on Fri Dec 15 21:30:38 2006 for wxPdfDocument by  doxygen 1.5.1-p1