Can Graphical Operations be combined in Qt or any other library ?
Posted
by Sunny
on Stack Overflow
See other posts from Stack Overflow
or by Sunny
Published on 2010-04-28T09:36:26Z
Indexed on
2010/04/28
10:13 UTC
Read the original article
Hit count: 212
Hi,
Here is a Scenario, A series of operations that I will call for painting,
QPainter p(this);
1). p.fillRect(0,0,320,240, RED_COLOR)
2) p.drawLine(0,0,100,100, BLUE_COLOR)
3) p.fillRect(0,0,320,240, YELLOW_COLOR)
Now I want that painter should not draw first FillRect Function. It should not draw line. It should only perform last operation.
Is there any way to achive this optimization in Qt.
Is this type of drawing/painting optimizations are supported by any library?
© Stack Overflow or respective owner