ehmmm... hello, Martin, ...for saving the contents of a DrawingArea I would... suggest these steps:
1) you drawi and/or write in DrawingArea. (ok, the contents); 2) you create the PDF file by using the ".OutputFile" property of Class "Printer"; 3) using the PDF file, you convert the PDF to an Image (for that, you need to activate the component gb.pdf); 4) then you save that "Image" with its Save method in an image file: Public Sub Button2_Click() Dim pdf As New PdfDocument Dim i As New Image With pdf .Open("/tmp/my_file.pdf") If .Ready = True Then ' ...then I convert the first page ("index" page = 1) in an "Image": i = pdf[1].Image ' So, we convert the Image in an image file: i.Save("/tmp/my_file.jpg") Else Message.Error("<FONT color=darkred>Error loading pdf file !") Endif End With End bye vuott -------------------------------------------- Lun 10/3/14, martin p cristia <terco...@hotmail.com> ha scritto: Oggetto: [Gambas-user] How to save the contents of a drawingarea and a GLArea A: gambas-user@lists.sourceforge.net Data: Lunedì 10 marzo 2014, 17:24 Hi: I need to save the contents of a drawingarea and a GLArea as a JPG, how to do it? tnx ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user