Logo Search packages:      
Sourcecode: timfx version File versions  Download package

kino::basic_bitmap< PixelType > Class Template Reference

#include <kino_plugin_types.h>

List of all members.


Detailed Description

template<typename PixelType>
class kino::basic_bitmap< PixelType >

Encapsulates a bitmap image.

Definition at line 509 of file kino_plugin_types.h.


Public Types

typedef const PixelType * const_iterator
typedef PixelType * iterator
typedef PixelType pixel_type
typedef basic_bitmap< pixel_type > this_type

Public Member Functions

template<typename ForeignType>
 basic_bitmap (basic_bitmap< ForeignType > &RHS)
 Copy constructor for bitmaps of dissimilar type.
 basic_bitmap (this_type &RHS)
 Copy constructor for bitmaps of similar type.
 basic_bitmap (void *Data, const pixel_size_type Width, const pixel_size_type Height)
 Creates a new bitmap, copying "old fashioned" C-style data.
 basic_bitmap (const pixel_size_type Width, const pixel_size_type Height)
 Creates a new bitmap with given width and height in pixels.
 basic_bitmap ()
 Creates an empty bitmap.
const_iterator begin () const
iterator begin ()
void clear ()
pixel_type *const data ()
 Returns the raw bitmap data array.
const pixel_type *const data () const
 Returns the raw bitmap data array.
const_iterator end () const
iterator end ()
pixel_size_type height () const
 Returns the bitmap height in pixels.
void reset (const pixel_size_type Width, const pixel_size_type Height)
pixel_size_type width () const
 Returns the bitmap width in pixels.
virtual ~basic_bitmap ()
 Destructor.

Private Attributes

PixelType * m_data
 Stores the bitmap data as a 1D array of pixels.
pixel_size_type m_height
 Stores the bitmap height in pixels.
pixel_size_type m_width
 Stores the bitmap width in pixels.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index