Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

wxPdfImage Class Reference

#include <pdfimage.h>

List of all members.


Detailed Description

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

Definition at line 26 of file pdfimage.h.


Public Member Functions

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

Protected Member Functions

bool ConvertWxImage (const wxImage &image)
 Extract info from a wxImage.
bool ParseGIF (wxInputStream *imageStream)
 Extract info from a GIF file.
bool ParseJPG (wxInputStream *imageStream)
 Extract info from a JPEG file.
bool ParsePNG (wxInputStream *imageStream)
 Extract info from a PNG 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).
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 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).
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

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

Static Protected Attributes

static wxFileSystem * ms_fileSystem = NULL
 File system for accessing image files.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index