#818: NSBitmapImageRep#bitmapData returns empty String
-------------------------+--------------------------------------------------
 Reporter:  e...@…       |       Owner:  lsansone...@…                          
                 
     Type:  defect       |      Status:  new                                    
                 
 Priority:  major        |   Milestone:                                         
                 
Component:  MacRuby      |    Keywords:  bitmap,NSBitmapImageRep, 
@nsBitmapImageRepObj.bitmapData
-------------------------+--------------------------------------------------

Comment(by lsansone...@…):

 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/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to