Two things here
1) CGBitmapContextCreate returns a CGContextRef, not an HIViewRef.
2) You generally can't pass the results of CGImageGetBitmapInfo
directly to CGBitmapContextCreate as images can have some bitmap info
that is invalid for a CGContext, so you may want to check that
CGBitmapContextCreate isn't returning NULL.
I'm not certain exactly why your using CGContextBegin/EndPage but it
shouldn't be necessary here.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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