How to create an image, which can be accessed directly from memory as well as using Quarz functions?
How to create an image, which can be accessed directly from memory as well as using Quarz functions?
- Subject: How to create an image, which can be accessed directly from memory as well as using Quarz functions?
- From: Vojtěch Meluzín <email@hidden>
- Date: Sun, 05 Aug 2012 13:38:50 +0200
Hi,
I'm performing my own graphics rendering using background images, which are
then placed onto the resulting Carbon/Cocoa view. I can perform the whole
rendering manually (by accessing the image data), but for some reason this
seems quite slow compared to the same thing on Windows (probably the final
conversion to system image, which isn't needed on Windows). Anyway I'd like
to use the Quarz functions to optimize something, or at least avoid the
final conversion to the system image. Is there a way to create an image,
which can be then manipulated directly as well as using system drawing
functions like it is on Windows? So far I tried CGImageCreate +
CGContextDrawImage and CGBitmapContextCreateImage + CGContextDrawImage and
both cases are just slow.
Regards,
Vojtech
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden