[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebDrawingArea to Image


Hi Benoit,


I have tested the 'WebDrawingArea.GetContents()' method and it works fine.

Thank you.

Olivier


Le 18/07/2026 à 02:20, Fabien Bodard a écrit :


Fabien Bodard

Le ven. 17 juil. 2026, 15:26, Olivier Cruilles <olivier.cruilles@xxxxxxxx> a écrit :

    oh !! that is cool Benoit, thank you very much.

    I will test it soon and I will give you my feedback..

    (trop cool !!)

    Olivier

    > Le 17 juill. 2026 à 09:03, Benoît Minisini
    <benoit.minisini@xxxxxxxxxxxxxxxx> a écrit :
    >
    > Le 14/07/2026 à 17:21, Olivier Cruilles a écrit :
    >> Hello,
    >> I would like to create an Image file from the drawing commands
    I use into a WebDrawingArea object, like we can do it for
    DrawingArea object.
    >> It is possible to do it like that ?
    >
    > Hi,
    >
    > In the last commit, I added a new API in 'gb.web.gui', named
    'WebForm.Call()' that allows the server application to execute any
    javascript on the browser client, and waits for the result using a
    modal event loop.
    >
    > I added a 'WebDrawingArea.GetContents()' method as an example,
    that returns the contents of the distant WebDrawingArea canvas as
    a Gambas Image object. This method automatically loads the
    'gb.image' and 'gb.image.io <http://gb.image.io>' components to do
    that (as the browser returns the canvas contents as a PNG image).
    >
    > The API is experimental. Try it to tell me if it fits your need.
    I think Fabien Bodard will be interested too.


I think so

Thank you

    >
    > Regards,
    >
    > --
    > Benoît Minisini.
    >
    >


--
Olivier Cruilles


References:
WebDrawingArea to ImageOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: WebDrawingArea to ImageBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: WebDrawingArea to ImageOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: WebDrawingArea to ImageFabien Bodard <gambas.fr@xxxxxxxxx>