Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ZDirectPixmap Class Reference

Provides a wrapper so that applications can directly access the fields of a QPixmap. More...

#include <ZDirectPixmap.h>

Inheritance diagram for ZDirectPixmap::

QPixmap List of all members.

Public Methods

 ZDirectPixmap (int width, int height, int depth=-1)
 Constructor for a DirectPixmap. More...

unsigned char* bits ()
 returns a pointer to the actual data contained in the pixmap. More...

const unsigned char* bits () const
 returns a const pointer to the actual data contained in the pixmap. More...

int bytesPerLine () const
 returns the number of bytes per line for the pixmap. More...


Detailed Description

Provides a wrapper so that applications can directly access the fields of a QPixmap.

Qt does not allow applications to access the individual bytes of a QPixmap because, traditionally, the QPixmap might live on another computer (an X-Windows server, for example). However, qt-embedded applications don't have this restriction. So ZDirectPixmap was created to allow a QPixmap to be directly accessible.


Constructor & Destructor Documentation

ZDirectPixmap::ZDirectPixmap ( int width,
int height,
int depth = -1 )
 

Constructor for a DirectPixmap.

Parameters:
width   width in pixels
height   height in pixels
depth   depth in bits per pixel (default is -1)


Member Function Documentation

const unsigned char * ZDirectPixmap::bits ( ) const
 

returns a const pointer to the actual data contained in the pixmap.

unsigned char * ZDirectPixmap::bits ( )
 

returns a pointer to the actual data contained in the pixmap.

int ZDirectPixmap::bytesPerLine ( ) const
 

returns the number of bytes per line for the pixmap.


The documentation for this class was generated from the following file:
Generated at Wed Mar 3 13:22:52 2004 by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001