On 27/07/2012, at 10:36 PM, Vojtěch Meluzín wrote:

> I need to create and manipulate an image, which I could access directly
> from memory and at the same time be able to use system drawing functions
> for optimization. On Windows I can create a memory bitmap, but it seems it
> is on possible on Mac, or is it? Note that I don't want to do any
> conversions from handles to memory etc., the whole point is optimization.


What have you tried?

There are all sorts of ways you can manipulate images, here's one:

[NSBitmapImageRep initWithBitMapDataPlanes:.....];

by passing existing pointer to memory in bitPlanes, it will wrap that memory in 
the necessary bitmap structure rather than create a new one.

there are also some similar functions in CGImage (though it's more work to wrap 
an existing block of memory), and the vImage framework for image processing.


--Graham
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to