Exponent::GUI::Graphics::CBitmapImage Class Reference

Inheritance diagram for Exponent::GUI::Graphics::CBitmapImage:

Exponent::GUI::Graphics::CBaseImage Exponent::GUI::Graphics::IImage Exponent::Basics::ICountedObject List of all members.

Detailed Description

Represents a system image. On windows this is a Bitmap format file and on OSX it is a PICT resource.

Note:
Mac version is currently inoperable due to the stupidity of the mac API's. Will be implemented ASAP
Todo:
Imlement mac pict loading
Date:
30/09/2006
Author:
Paul Chana
Version:
1.0.0 Initial version
Note:
All contents of this source code are copyright 2005 Exp Digital Uk.
This source file is covered by the licence conditions of the Infinity API. You should have recieved a copy
with the source code. If you didnt, please refer to http://www.expdigital.co.uk All content is the Intellectual property of Exp Digital Uk.
Certain sections of this code may come from other sources. They are credited where applicable.
If you have comments, suggestions or bug reports please visit http://support.expdigital.co.uk
Id
CBitmapImage.hpp,v 1.2 2007/02/08 21:07:54 paul Exp

Definition at line 34 of file CBitmapImage.hpp.

Public Member Functions

Static Public Member Functions


Constructor & Destructor Documentation

Exponent::GUI::Graphics::CBitmapImage::CBitmapImage ( const CSystemString &  filename  ) 

Construction with a file name

Parameters:
filename Name of the file to load
Exceptions:
CException On load error

Exponent::GUI::Graphics::CBitmapImage::CBitmapImage (  ) 

Construction

virtual Exponent::GUI::Graphics::CBitmapImage::~CBitmapImage (  )  [virtual]

Destruction


Member Function Documentation

virtual EImageFormats Exponent::GUI::Graphics::CBitmapImage::getImageFormat (  )  const [inline, virtual]

Get the format

Return values:
EImageFormats The format of the image

Implements Exponent::GUI::Graphics::IImage.

Definition at line 68 of file CBitmapImage.hpp.

References Exponent::GUI::Graphics::IImage::e_bitmap.

static CBitmapImage* Exponent::GUI::Graphics::CBitmapImage::getNewInstance ( const CSystemString &  path,
const CString &  filename 
) [static]

Get a new bitmap image instance

Parameters:
path The containing folder of the image
filename the name of the file
Return values:
CBitmapImage* The new instance or NULL on error

virtual bool Exponent::GUI::Graphics::CBitmapImage::loadFromFile ( const CSystemString &  filename  )  [virtual]

Load from a file

Parameters:
filename The name of the file, expected to be a 32bpp TGA file
Return values:
bool True if loaded the image properly, false on error

Reimplemented from Exponent::GUI::Graphics::CBaseImage.


Infinity API - Exponent::GUI::Graphics::CBitmapImage Class Reference generated on 7 Mar 2007