[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-cygwin
Subject: QBitmap problems
From: "Chris January" <chrisjan () iomo ! co ! uk>
Date: 2005-01-24 14:34:59
Message-ID: 20050124143512.5424.qmail () ktown ! kde ! org
[Download RAW message or body]
Upon further investigation, my original code for drawing Qbitmap's seems to
be more or less ok. There should be no need for a special case for
self-masking as this is handled by the existing code. Peter commented that
the test case I posted gave different results if you made the static
QBitmap's non-static. It seems that setting a mask for a QBitmap alters the
original QBitmap in some way. For example the following code:
Qbitmap copy = bm;
copy.setMask (somemask);
copy.setMask (QBitmap ());
painter.drawPixmap (QPoint (x, y), copy);
should behave the same as:
Qbitmap copy = bm;
painter.drawPixmap (QPoint (x, y), copy);
but at present it doesn't!
The problem appears to be in QPixmap.setMask rather than
QPainter.drawPixmap.
Chris
_______________________________________________
kde-cygwin mailing list
kde-cygwin@kde.org
https://mail.kde.org/mailman/listinfo/kde-cygwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic