How to Optimize Combined Graphical Operations?

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 15:23 UTC
Read the original article Hit count: 204

Filed under:
|

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

Related posts about qt

Related posts about rendering