wxPdfDocument 0.9.2
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
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 GetColourSpace ()
 Get colour space.
int GetBitsPerComponent ()
 Get bits per component.
wxString GetF ()
 Get compression filter specification.
wxString GetParms ()
 Get additional PDF parameter.
unsigned int GetPaletteSize ()
 Get palette size.
char * GetPalette ()
 Get palette data.
unsigned int GetTransparencySize ()
 Get transparency size.
char * GetTransparency ()
 Get transparency data.
unsigned 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
 Colourspace.
char m_bpc
 Bits per colour.
wxString m_f
 Compression method.
wxString m_parms
 Additional PDF parameters.
unsigned int m_palSize
 Size of palette.
char * m_pal
 Palette data.
unsigned int m_trnsSize
 Transparency colour size.
char * m_trns
 Transparency colour data.
unsigned 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.

virtual wxPdfImage::~wxPdfImage ( ) [virtual]

Destructor.


Member Function Documentation

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

Extract info from a wxImage.

int wxPdfImage::GetBitsPerComponent ( ) [inline]

Get bits per component.

wxString wxPdfImage::GetColourSpace ( ) [inline]

Get colour space.

char* wxPdfImage::GetData ( ) [inline]

Get image data.

unsigned int wxPdfImage::GetDataSize ( ) [inline]

Get image data size.

wxString wxPdfImage::GetF ( ) [inline]

Get compression filter specification.

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

Get the file system for accessing image files.

int wxPdfImage::GetHeight ( ) [inline]

Get image height in pixels.

int wxPdfImage::GetIndex ( ) [inline]

Get image index.

int wxPdfImage::GetMaskImage ( ) [inline]

Check mask flag.

wxString wxPdfImage::GetName ( ) [inline]

Get image file name.

int wxPdfImage::GetObjIndex ( ) [inline]

Get object index.

char* wxPdfImage::GetPalette ( ) [inline]

Get palette data.

unsigned int wxPdfImage::GetPaletteSize ( ) [inline]

Get palette size.

wxString wxPdfImage::GetParms ( ) [inline]

Get additional PDF parameter.

char* wxPdfImage::GetTransparency ( ) [inline]

Get transparency data.

unsigned int wxPdfImage::GetTransparencySize ( ) [inline]

Get transparency size.

wxString wxPdfImage::GetType ( ) [inline]

Get image type.

int wxPdfImage::GetWidth ( ) [inline]

Get image width in pixels.

int wxPdfImage::GetX ( ) [inline]

Get image offset in X direction.

int wxPdfImage::GetY ( ) [inline]

Get image offset in Y direction.

bool wxPdfImage::IsFormObject ( ) [inline]

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

bool wxPdfImage::Parse ( )

Parse image file.

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

Extract info from a GIF file.

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::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)

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 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)

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)

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

Set image index.

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

Set mask flag.

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

Set image file name.

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

Set object index.

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

Set image type.


Member Data Documentation

char wxPdfImage::m_bpc [protected]

Bits per colour.

wxString wxPdfImage::m_cs [protected]

Colourspace.

char* wxPdfImage::m_data [protected]

Image data.

unsigned int wxPdfImage::m_dataSize [protected]

Image data size.

Document this image belongs to.

wxString wxPdfImage::m_f [protected]

Compression method.

bool wxPdfImage::m_fromWxImage [protected]

Flag whether image originated from wxImage.

int wxPdfImage::m_height [protected]

Image height in pixels.

wxFSFile* wxPdfImage::m_imageFile [protected]

File system file of image.

wxInputStream* wxPdfImage::m_imageStream [protected]

Stream containing the image data.

int wxPdfImage::m_index [protected]

Index number of this image.

bool wxPdfImage::m_isFormObj [protected]

Flag whether image must be treated as form object.

int wxPdfImage::m_maskImage [protected]

Id of associated image mask.

int wxPdfImage::m_n [protected]

Image object index.

wxString wxPdfImage::m_name [protected]

Image name.

char* wxPdfImage::m_pal [protected]

Palette data.

unsigned int wxPdfImage::m_palSize [protected]

Size of palette.

wxString wxPdfImage::m_parms [protected]

Additional PDF parameters.

char* wxPdfImage::m_trns [protected]

Transparency colour data.

unsigned int wxPdfImage::m_trnsSize [protected]

Transparency colour size.

wxString wxPdfImage::m_type [protected]

Image type.

bool wxPdfImage::m_validWxImage [protected]

Flag whether wxImage conversion went ok.

int wxPdfImage::m_width [protected]

Image width in pixels.

int wxPdfImage::m_x [protected]

Offset in X direction.

int wxPdfImage::m_y [protected]

Offset in Y direction.

wxFileSystem* wxPdfImage::ms_fileSystem [static, protected]

File system for accessing image files.


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