Is there anyway to get the CGContextRef corresponding to the main
screen (Desktop) on Mac. I want to draw some images (CGImageRef)
directly to the screen. I have tried below code but it is not
working as contextRef is always coming as NULL. Please let me know
if this can be done.
Nope. You'll have to create a window and draw into that. If it's
just for debugging, you can probably use HIWindowFlush to cause an
immediate redraw, and save yourself the event loop. Alternately, you
could consider just drawing into a CGBitmapContext and then exporting
that to a file for viewing in Preview or so.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
_______________________________________________
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