[MacRuby-devel] [MacRuby] #818: NSBitmapImageRep#bitmapData returns empty String
MacRuby
ruby-noreply at macosforge.org
Mon Aug 2 19:25:16 PDT 2010
#818: NSBitmapImageRep#bitmapData returns empty String
-------------------------+--------------------------------------------------
Reporter: emil@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords: bitmap,NSBitmapImageRep, @nsBitmapImageRepObj.bitmapData
-------------------------+--------------------------------------------------
Comment(by lsansonetti@…):
Unfortunately there is little we can do here. -bitmapData returns a
"unsigned char *" type and MacRuby assumes this is a string. However,
since the first byte is null, the resulted string object is empty.
There are other ways of getting the data. -getPixel:atX:y: for example
might work better.
I am leaving this bug open in the idea that we might find a solution for
the -bitmapData problem.
--
Ticket URL: <http://www.macruby.org/trac/ticket/818#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list