Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

Bitmap_16bit Class Reference
[Graphics]

Uncompressed 16-bit color buffer without alpha channel. More...

Inheritance diagram for Bitmap_16bit:

Bitmap

List of all members.


Public Member Functions

 Bitmap_16bit ()
 Bitmap_16bit (const Asset &asset)
 Bitmap_16bit (int width, int height)
 Bitmap_16bit (const Image &image, bool dither=false)
 ~Bitmap_16bit ()
virtual StringId GetType ()
virtual void Save (Asset &asset) const
virtual void Load (const Asset &asset)
virtual void WriteToAsset (Asset *asset) const
virtual void ReadFromAsset (const Asset *asset)

Detailed Description

Uncompressed 16-bit color buffer without alpha channel.

Author:
Mattias Gustavsson

Definition at line 22 of file Bitmap_16bit.h.


Constructor & Destructor Documentation

Bitmap_16bit::Bitmap_16bit (  ) 

Definition at line 21 of file Bitmap_16bit.cpp.

Bitmap_16bit::Bitmap_16bit ( const Asset asset  ) 

Definition at line 28 of file Bitmap_16bit.cpp.

Bitmap_16bit::Bitmap_16bit ( int  width,
int  height 
)

Creates an empty bitmap with the specified dimensions.

Parameters:
width The width of the bitmap, in pixels
height The height of the bitmap, in pixels

Definition at line 36 of file Bitmap_16bit.cpp.

Bitmap_16bit::Bitmap_16bit ( const Image image,
bool  dither = false 
)

Creates a bitmap from an Image. The width and the height of the bitmap will be taken from the image, the colors reduced from 32 to 16 bits, and the alpha channel is dropped.

Parameters:
image Image to create bitmap from

Definition at line 48 of file Bitmap_16bit.cpp.

Bitmap_16bit::~Bitmap_16bit (  ) 

Definition at line 76 of file Bitmap_16bit.cpp.


Member Function Documentation

StringId Bitmap_16bit::GetType (  )  [virtual]

The Bitmap class is an abstract interface, and is implemented by a number of different bitmap classes. The GetType method retrieves the name of the actual implementation for the Bitmap instance.

Returns:
A StringId containing the class name of this bitmaps implementation

Implements Bitmap.

Definition at line 12 of file Bitmap_16bit.cpp.

void Bitmap_16bit::Save ( Asset asset  )  const [virtual]

Implements Bitmap.

Definition at line 87 of file Bitmap_16bit.cpp.

void Bitmap_16bit::Load ( const Asset asset  )  [virtual]

Implements Bitmap.

Definition at line 104 of file Bitmap_16bit.cpp.

void Bitmap_16bit::WriteToAsset ( Asset asset  )  const [virtual]

Implements Bitmap.

Definition at line 185 of file Bitmap_16bit.cpp.

void Bitmap_16bit::ReadFromAsset ( const Asset asset  )  [virtual]

Implements Bitmap.

Definition at line 163 of file Bitmap_16bit.cpp.



Pixie University and the Pixie Game Engine is created and managed by Mattias Gustavsson.
Reproduction/republishing of any material on this site without permission is strictly prohibited.