Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kEventWindowGetRegion - only with HIView?



On 27.10.2007 at 11:36 John Stiles wrote:

>Did you try setting the window's clip region to the same region you  
>returned to kEventWindowGetRegion?
>Or passing this region to CopyBits as the maskRgn parameter?
>I've never attempted either of these, just curious.

Oh, now that's brilliant. Calling SetClip() right before CopyBits() seems
to do exactly what I want. I'll have to play with it some more to see if
it does everything that I expect, but it seems very promising.

The maskRgn parameter is not very helpful because I'm also doing
lots of partial blits with CopyBits() and then I would have to crop
the clip region before every partial blit AFAICS. But calling SetClip()
before CopyBits() seems to be fine.

I'll try some more, and see if it's really a perfect solution. Sounds
almost to easy to be perfect, but who knows :-)

Anyways, big thanks for the hint. Hopefully this saves me a lot of work...

Andreas

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >kEventWindowGetRegion - only with HIView? (From: "Andreas Falkenhahn" <email@hidden>)
 >Re: kEventWindowGetRegion - only with HIView? (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.