[Gambas-user] Persistent drawings? => Cached

Daniel Campos dcamposf at ...626...
Sun Oct 7 18:50:59 CEST 2007


>
> I will try this later. Maybe some "copy" or "assignment" command should
> be preferred to drawImage(Image) here.
>

It is really easy to implement in your program: create an "Utils"
class with following content:

STATIC PUBLIC SUB Copy(hDraw AS DrawingArea, hPic AS Picture)

  Draw.Begin(hDraw)
  Draw.Picture(hPic, 0, 0)
  Draw.End()

END

Then call it when you need it:

Utils.Copy(MyDrawingArea,MyPicture)

Isn't it? :-)

Daniel




More information about the User mailing list