SetClippingRegion question Topic is solved
-
- I live to help wx-kind
- Posts: 198
- Joined: Sat Oct 28, 2006 3:36 am
SetClippingRegion question
Say I have a wxClientDC and I set the clipping region to (300, 300, w = 100, h = 100). Does that mean that if I draw to the DC at 0,0 it will show at x=300, y=300? That's how I always thought it worked however when my code draws at 0,0 it shows up at 0,0. I must be misunderstanding. Thanks. Any help is appreciated. maxinuruguay
-
- Can't get richer than this
- Posts: 864
- Joined: Thu Jul 28, 2005 9:48 pm
- Location: New Forest, United Kingdom
- Contact:
As Auria says it means that anything you draw outside this region will be clipped, that is it will not be shown. I think the way you are thinking of it is more in the way that viewports work.
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/