Bitmap_16bit Class Reference
[Graphics]
Uncompressed 16-bit color buffer without alpha channel.
More...

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.
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] |
| void Bitmap_16bit::Load | ( | const Asset & | asset | ) | [virtual] |
| void Bitmap_16bit::WriteToAsset | ( | Asset * | asset | ) | const [virtual] |
| void Bitmap_16bit::ReadFromAsset | ( | const Asset * | asset | ) | [virtual] |
Reproduction/republishing of any material on this site without permission is strictly prohibited.
