gr: image transpose fix
This commit is contained in:
parent
f290748c72
commit
9bbe0f9414
@ -914,8 +914,8 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
|
|||||||
|
|
||||||
|
|
||||||
elseif st == :image
|
elseif st == :image
|
||||||
img = series[:z].surf
|
z = transpose_z(series, series[:z].surf, true)
|
||||||
h, w = size(img)
|
h, w = 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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user