Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

PngBitmap Class Reference

Class for PNG bitmaps. More...

#include <png_bitmap.hpp>

Inheritance diagram for PngBitmap:

GenericBitmap SkinObject List of all members.

Public Member Functions

 PngBitmap (intf_thread_t *pIntf, image_handler_t *pImageHandler, string fileName, uint32_t aColor)
virtual int getWidth () const
 Get the width of the bitmap.
virtual int getHeight () const
 Get the heighth of the bitmap.
virtual uint8_t * getData () const

Detailed Description

Class for PNG bitmaps.

Definition at line 33 of file png_bitmap.hpp.


Constructor & Destructor Documentation

PngBitmap::PngBitmap intf_thread_t *  pIntf,
image_handler_t *  pImageHandler,
string  fileName,
uint32_t  aColor
 

Load a PNG bitmap from a file. aColor is the transparency color, in the format 0xRRGGBB

Definition at line 29 of file png_bitmap.cpp.

References plane_t::i_pitch, picture_t::p, plane_t::p_pixels, and picture_t::pf_release.


Member Function Documentation

uint8_t * PngBitmap::getData  )  const [virtual]
 

Get a linear buffer containing the image data. Each pixel is stored in 4 bytes in the order B,G,R,A

Implements GenericBitmap.

Definition at line 85 of file png_bitmap.cpp.

References SkinObject::getIntf().


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 10:15:04 2005 for vlc-0.8.4a by  doxygen 1.4.2