Function painter:image
paints a segment of image image
at position (x,y)
in the current coordinate systems
with with w
and height h
. The source segment
is defined by the rectangle of size (sw,sh)
starting on point (sx,sy)
.
The default source width sw
and height sh
are the width and height of the
source image. The default source origin (sx,sy)
is the origin (0,0)
.
The default target width w
and height h
are the source width sw
and height sh
.
Argument image
can be a Qt variant of class qt.QImage
or qt.QPixmap
or a Qt object of class =qt.QtLuaPainter.
In the latter case, the function painter:image()
without arguments
is used to obtain the source surface.
img
constructed with qtwidget.newimage
,
you must specify the associated painter img.port
.
torch.Tensor
, first create a
qt.QImage
using the function
qt.QImage.fromTensor
from by package qttorch
.
Blit is of course affected by the current composition mode.
Note that this function must be invoked with arguments.
Otherwise see the documentation for painter:image()
.
See also: PostScript operator image
.