Image¶
-
Image(xrange, yrange, img, arg...; kvs...)¶ PlotComponentto draw RGB data inimg.imgmust be of typeArray{UInt32,2}.xrangeandyrangeare used to set the range of the corresponding axis.
Example¶
N = 32
imgdata = reshape([ 0x00ffffff / (N^2-1) * i for i in 0:(N^2-1) ], (N, N))
img = Image((1, N), (1, N), convert(Array{UInt32,2}, imgdata))
p = FramedPlot()
add(p, img)
