Image¶
-
Image
(xrange, yrange, img, arg...; kvs...)¶ PlotComponent
to draw RGB data inimg
.img
must be of typeArray{UInt32,2}
.xrange
andyrange
are 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)