[Gambas-user] Intimate question about DrawingArea

Laurent Carlier lordheavy at ...512...
Thu Dec 7 11:40:26 CET 2006


Le Jeudi 7 Décembre 2006 09:32, Eilert a écrit :
> Hi folks,
>
> just wondered if there's someone here who knows if it's possible to read
> and write pixels from a DrawingArea to enable shifting rectangular areas
> to another place.
>
> I was thinking about extinguishing an area and redraw it somewhere else,
> but I don't know where to start.
>
> Any ideas?
>
> Regards
>
> Rolf
>

You can use DrawingArea.Grab() AS a Picture
and Picture[x,y] to read and write pixels

You can too use Draw.Begin(DrawingArea)
then draw your picture (partially if you want)
with Draw.Picture(Picture)

http://64.128.110.55/help/comp/gb.qt/drawingarea
http://64.128.110.55/help/comp/gb.qt/control/grab
http://64.128.110.55/help/comp/gb.qt/draw
http://64.128.110.55/help/comp/gb.qt/draw/picture

++





More information about the User mailing list