PDA

View Full Version : I want to Draw on AndRop Mode



aloneness
7th April 2007, 12:21
There is a background image, foreground image, and mask image.

I want to make a sprite animation program.

so I need function of setRasterop. but there is no setRasterOp in qt4

How can I draw bmp files in AndRop mode?

or How can I implement sprite animation on qt4?

jacek
7th April 2007, 13:09
so I need function of setRasterop. but there is no setRasterOp in qt4
In Qt4 it's called "composition mode". Note that it works only with QImages (on all platforms) and QPixmaps (on X11 and windows).

http://doc.trolltech.com/qq/qq17-compositionmodes.html


How can I implement sprite animation on qt4?
Use QGraphicsView.

http://doc.trolltech.com/qq/qq19-graphicsview.html