Mailing Lists: Apple Mailing Lists

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

HIViewCreateOffscreenImage sample code?



I'd like to see how this should be used. I want to implement a simple HIView that makes simple line drawings in response to mouse clicks.

I could store the mouse location and state (like "drawing line"), and then request that the view be redrawn. While handling the draw content event, it can draw a line to the new mouse location.

But I want to draw offscreen, so I started looking in to that. The docs say CGLayers are the preferred way to do this, but there is also HIViewCreateOffscreenImage(). However, I'm not sure of the right way to use that. Is there any sample code? I really don't understand the intent of this API.


TIA,

--
Rick




_______________________________________________ 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


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.