Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
QBitmap is a Qt class used for masking/transparency in QPixmap. QBitmap is a class for containing monochrome (that is: each pixel is either on or off) images, instead of the colored Windows bitmaps.
The code below, adapted from Qt example 1: moving a sprite over a background in 2D, shows how to add transparency to a QPixmap.
#include <QGraphicsPixmapItem> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.