Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

Bitmap_16bitAlpha Class Reference
[Graphics]

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

Inheritance diagram for Bitmap_16bitAlpha:

Bitmap

List of all members.


Public Member Functions

 Bitmap_16bitAlpha ()
 Bitmap_16bitAlpha (const Asset &asset)
 Bitmap_16bitAlpha (int width, int height)
 Bitmap_16bitAlpha (const Image &image, bool dither=false)
 ~Bitmap_16bitAlpha ()
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 with alpha channel.

Author:
Mattias Gustavsson
An Bitmap_16bitAlpha is simply a collection of 16-bit color values with a width and a height, plus a collection of 8-bit alpha values with the same dimesnsions.

Definition at line 24 of file Bitmap_16bitAlpha.h.


Constructor & Destructor Documentation

Bitmap_16bitAlpha::Bitmap_16bitAlpha (  ) 

Definition at line 21 of file Bitmap_16bitAlpha.cpp.

Bitmap_16bitAlpha::Bitmap_16bitAlpha ( const Asset asset  ) 

Definition at line 28 of file Bitmap_16bitAlpha.cpp.

Bitmap_16bitAlpha::Bitmap_16bitAlpha ( int  width,
int  height 
)

Creates an empty bitmap with the specified dimensions. All pixels will be set to black (0) at creation.

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

Definition at line 36 of file Bitmap_16bitAlpha.cpp.

Bitmap_16bitAlpha::Bitmap_16bitAlpha ( 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 49 of file Bitmap_16bitAlpha.cpp.

Bitmap_16bitAlpha::~Bitmap_16bitAlpha (  ) 

Definition at line 82 of file Bitmap_16bitAlpha.cpp.


Member Function Documentation

StringId Bitmap_16bitAlpha::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_16bitAlpha.cpp.

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

Implements Bitmap.

Definition at line 97 of file Bitmap_16bitAlpha.cpp.

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

Implements Bitmap.

Definition at line 114 of file Bitmap_16bitAlpha.cpp.

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

Implements Bitmap.

Definition at line 212 of file Bitmap_16bitAlpha.cpp.

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

Implements Bitmap.

Definition at line 183 of file Bitmap_16bitAlpha.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.