Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

Bitmap_Alpha Class Reference
[Graphics]

Uncompressed 8-bit alpha channel. More...

Inheritance diagram for Bitmap_Alpha:

Bitmap

List of all members.


Public Member Functions

 Bitmap_Alpha ()
 Bitmap_Alpha (const Asset &asset)
 Bitmap_Alpha (int width, int height)
 Bitmap_Alpha (const Image &image, bool useGrayscaleInsteadOfAlpha=false)
 ~Bitmap_Alpha ()
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 8-bit alpha channel.

Author:
Mattias Gustavsson
A Bitmap_Alpha is simply a collection of 8-bit alpha values with a width and a height.

Definition at line 23 of file Bitmap_Alpha.h.


Constructor & Destructor Documentation

Bitmap_Alpha::Bitmap_Alpha (  ) 

Definition at line 20 of file Bitmap_Alpha.cpp.

Bitmap_Alpha::Bitmap_Alpha ( const Asset asset  ) 

Definition at line 27 of file Bitmap_Alpha.cpp.

Bitmap_Alpha::Bitmap_Alpha ( int  width,
int  height 
)

Definition at line 35 of file Bitmap_Alpha.cpp.

Bitmap_Alpha::Bitmap_Alpha ( const Image image,
bool  useGrayscaleInsteadOfAlpha = false 
)

Parameters:
image Image to create bitmap from

Definition at line 47 of file Bitmap_Alpha.cpp.

Bitmap_Alpha::~Bitmap_Alpha (  ) 

Definition at line 87 of file Bitmap_Alpha.cpp.


Member Function Documentation

StringId Bitmap_Alpha::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 11 of file Bitmap_Alpha.cpp.

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

Implements Bitmap.

Definition at line 98 of file Bitmap_Alpha.cpp.

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

Implements Bitmap.

Definition at line 115 of file Bitmap_Alpha.cpp.

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

Implements Bitmap.

Definition at line 196 of file Bitmap_Alpha.cpp.

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

Implements Bitmap.

Definition at line 174 of file Bitmap_Alpha.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.