Follow-up Comment #3, bug #34467 (project gnustep):
is the underlying bug also responsible for the fact that the following method
(works on OS X) to get the pixel data of a NSImage doesn't work - or should i
file a separate bug?
NSImage *theImg = [[NSImage alloc] initWithContentsOfURL:_url];
NSBitmapImageRep* bitmap = [NSBitmapImageRep alloc];
NSSize imgSize = [theImg size];
[theImg lockFocus];
[bitmap initWithFocusedViewRect:NSMakeRect(0.0, 0.0, imgSize.width,
imgSize.height)];
[theImg unlockFocus];
char *_data = (char *)calloc( imgSize.width * 4 * imgSize.height, 1);
memcpy(_data, [bitmap bitmapData], imgSize.width * 4 * imgSize.height);
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34467>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep