Merge pull request #710 from jheinen/dev

Fixed image bug
This commit is contained in:
Josef Heinen 2017-02-27 14:15:41 +01:00 committed by GitHub
commit cd3ce86dbb

View File

@ -944,7 +944,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
elseif st == :image elseif st == :image
z = transpose_z(series, series[:z].surf, true) z = transpose_z(series, series[:z].surf, true)
h, w = size(z) w, h = size(z)
if eltype(z) <: Colors.AbstractGray if eltype(z) <: Colors.AbstractGray
grey = round(UInt8, float(z) * 255) grey = round(UInt8, float(z) * 255)
rgba = map(c -> UInt32( 0xff000000 + Int(c)<<16 + Int(c)<<8 + Int(c) ), grey) rgba = map(c -> UInt32( 0xff000000 + Int(c)<<16 + Int(c)<<8 + Int(c) ), grey)