# File lib/fusioncharts/exporter/generator.rb, line 180 def get_bitmap_data_24(id=0) image_data_24 ="" rows = @pages_data[id][:image_data].split(";") rows.each do |row| pixels = row.split(",") pixels.each do |pixel| pixels_rgb="" c,repeat = pixel.split("_") if c.length <= 0 c=@pages_data[id][:bgcolor] end # if length of the color is less than 6 then pad zeroes c="#{c.rjust(6,'0')}" r = c[0,2].to_i(16) g= c[2,2].to_i(16) b=c[4,2].to_i(16) #print "R="+r.to_s #print "G="+g.to_s #print "B="+b.to_s rgbArr = [r,g,b] rgb = rgbArr.pack("c3") (repeat.to_i).times {pixels_rgb << rgb.to_s} image_data_24 << pixels_rgb end # end of pixels.each end# end of rows.each return image_data_24 end