468,283 Members | 1,957 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,283 developers. It's quick & easy.

how do you change the size of the clipping region of a Graphics object

Hi there,

I have a panel that I'm trying to draw lines on based on mouse events.
I'm using a Graphics object to do this. However, the region that the
graphics object will draw lines in is different in size than the panel
size. I'd like the graphics object's clipping region (is "clipping
region" the right terminology?) to be the same size as the panel. How
do I do this?

Note that the default size of the clipping region for the graphics
object that I created seems to be 200x100. Why is this? Shouldn't it be
the same as the panel in which it was instantiated?

Thanks,
Don

Jan 24 '07 #1
0 1179

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mudcat | last post: by
1 post views Thread by RIck Measham | last post: by
1 post views Thread by Steve Richter | last post: by
reply views Thread by William Stacey [MVP] | last post: by
1 post views Thread by Carl Gilbert | last post: by
3 posts views Thread by Brad Rogers | last post: by
reply views Thread by zeng.hui.stephen | last post: by
2 posts views Thread by Mike Borrowdale | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.