Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofPict Class Reference
[OOFILE Report writer]

#include <oofdraw.h>

Collaboration diagram for oofPict:

Collaboration graph
[legend]
List of all members.

Detailed Description

Cross-platform picture representation can load from file or resource and draw.

Allows you to specify a JPEG filename and store JPEG in parallel to original bitmap so oofPict being exported to RTF or HTML can use optimal representation.

Windows Bitmaps
Under original Win32 version a bitmap is a bitmap. At some point (98 and 2000 or NT4 SP6 onwards) a bitmap became able to be of type JPEG. Windows 98/Me, Windows 2000/XP: SetDIBitsToDevice or StretchDIBits can send a JPEG or PNG directly to a printer, if the printer hardware supports it. This extended format behaviour is indicated if the biCompression member of BITMAPINFOHEADER is BI_JPEG or BI_PNG.

Todo:
implement ctor loading from resource ID for Windows whem oofDIB able to load from resource.

if have JPEG, use that when drawing to printers if possible (see Platform SDK discussion Graphics & Multimedia Services / Windows GDI / Bitmaps)

reimplement this and possibly report drawing with GDI+ because it looks a lot nicer!


Secondary JPEG access

void loadSecondaryJPEG (const oofFileRef &)
bool hasJPEG () const
const char * bufOfJPEG () const
unsigned long bytesInJPEG () const

getters

GWorldPtr gWorld ()
unsigned long height ()
unsigned long width ()
oofString describe () const

Public Member Functions

 oofPict (const oofFileRef &)
 oofPict (const oofPict &)
 oofPict (unsigned long PICTresourceID)
 ~oofPict ()
oofPictclone () const
void draw (int x, int y, int right, int bottom, bool onPrinter=false)

Static Public Member Functions

PicHandle readPict (const oofFileRef &)


Constructor & Destructor Documentation

oofPict::oofPict const oofFileRef  ) 
 

oofPict::oofPict const oofPict  ) 
 

oofPict::oofPict unsigned long  PICTresourceID  ) 
 

oofPict::~oofPict  ) 
 


Member Function Documentation

const char * oofPict::bufOfJPEG  )  const [inline]
 

unsigned long oofPict::bytesInJPEG  )  const [inline]
 

oofPict * oofPict::clone  )  const
 

oofString oofPict::describe  )  const
 

void oofPict::draw int  x,
int  y,
int  right,
int  bottom,
bool  onPrinter = false
 

GWorldPtr oofPict::gWorld  )  [inline]
 

bool oofPict::hasJPEG  )  const [inline]
 

unsigned long oofPict::height  ) 
 

void oofPict::loadSecondaryJPEG const oofFileRef  ) 
 

PicHandle oofPict::readPict const oofFileRef  )  [static]
 

unsigned long oofPict::width  ) 
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:42:25 2004 for OOFILE by doxygen 1.3.5