Re: [Gambas-user] gambas3 print image 2nd

2010-12-07 Thread Benoît Minisini
> Benoit, > > the image i want to print is created this way: > "hPaper = New Image(6000, 300, Color.White)" > On this image i paint my spectrogram data. > I do some more experiments and assume i get it work > as needed. Thank You :) 6000 * 300 * 4 = 7,2 Mb. So a big image! > > By the way: Is an

Re: [Gambas-user] gambas3 print image 2nd

2010-12-07 Thread wally
Benoit, the image i want to print is created this way: "hPaper = New Image(6000, 300, Color.White)" On this image i paint my spectrogram data. I do some more experiments and assume i get it work as needed. Thank You :) By the way: Is any effort known to make a math lib available for Ganbas (e.

Re: [Gambas-user] gambas3 print image 2nd

2010-12-07 Thread Benoît Minisini
> It works via "Printer1.Count = 8" but printing to PDF is extremely slow > on my system. Few minutes for 8 PDF pages. Much slower than the real > Printer creates output on paper. Thats the rerason i asked here. > I did not aware, that pdf generation was still in process when i tried to > load it

Re: [Gambas-user] gambas3 print image 2nd

2010-12-07 Thread wally
It works via "Printer1.Count = 8" but printing to PDF is extremely slow on my system. Few minutes for 8 PDF pages. Much slower than the real Printer creates output on paper. Thats the rerason i asked here. I did not aware, that pdf generation was still in process when i tried to load it to acro

[Gambas-user] gambas3 print image 2nd

2010-12-07 Thread wally
How to print a very wide image, lets say a spectrogram DinA4 Heigth and usually 5 or 6 sheets wide in landscaoe format ? Do i need to manage the page cutting manually in code or is there a more smart way ? Target should be few pages of printer output or a multipage PDF. cheers wally --

Re: [Gambas-user] gambas3 print image

2010-12-07 Thread wally
Thank you also from my side. "Paint.DrawImage" is very cool :) wally On Tuesday 07 December 2010 14:30:46 Fabien Bodard wrote: > wou finally i've my paint.image :) !!! > > thank you :) > > Le 7 décembre 2010 02:31, Benoît Minisini > a écrit : > >> > >> I finally found a workaround to tha

Re: [Gambas-user] gambas3 print image

2010-12-07 Thread Fabien Bodard
wou finally i've my paint.image :) !!! thank you :) Le 7 décembre 2010 02:31, Benoît Minisini a écrit : >> >> I finally found a workaround to that Qt bug in revision #3347. And I added >> a new Paint.DrawImage() function to easily paint images. And I fixed the >> default value of Printer.Cou

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread Benoît Minisini
> > I finally found a workaround to that Qt bug in revision #3347. And I added > a new Paint.DrawImage() function to easily paint images. And I fixed the > default value of Printer.Count in gb.qt4 that is now one, so that at least > one page is printed when calling Printer.Print(). > > Now printi

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread Benoît Minisini
> > http://bugreports.qt.nokia.com/browse/QTBUG-5114 > > > > That Qt bug explain > > ^ > /|\ > s ' I finally found a workaround to that Qt bug in revision #3347. And I added a new Paint.DrawImage() function to easily paint images. A

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread Benoît Minisini
> > http://bugreports.qt.nokia.com/browse/QTBUG-5114 > > That Qt bug explain ^ /|\ s ' -- Benoît Minisini -- What happens now with your Lotus Notes apps -

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread Benoît Minisini
> > this the demo :) > > > > > > But Benoit please try it too :.. i've found some failure on the output : > > > > On gtk ... the picture is too big ! (like the font in the reports) > > > > On Qt ... nothing in the file neither in pdf nor in ps > > The Printer1.Count is zero by default on gb.qt

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread Benoît Minisini
> this the demo :) > > > But Benoit please try it too :.. i've found some failure on the output : > > On gtk ... the picture is too big ! (like the font in the reports) > > On Qt ... nothing in the file neither in pdf nor in ps The Printer1.Count is zero by default on gb.qt4. You must set it t

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread wally
Hello Fabian, thank you for your quick reply. I aslo get empty pdf.files with your Demo. Not only blanc but empty zero-byte size file. I found this on the web , but do not really know how to work with this information: " Printer instances are Gambas objects, and as any other Gambas objects, yo

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread wally
Fabian, your demo works nice if you swich off "gb.gui" and set "gb.gtk" instead. Doing same with gb.qt4 creates empty files. wally Hello Fabian, thank you for your quick reply. I aslo get empty pdf.files with your Demo. Not only blanc but empty zero-byte size file. I found this on the web

Re: [Gambas-user] gambas3 print image

2010-12-06 Thread Fabien Bodard
this the demo :) But Benoit please try it too :.. i've found some failure on the output : On gtk ... the picture is too big ! (like the font in the reports) On Qt ... nothing in the file neither in pdf nor in ps -- Fabien Bodard Print_Picture-0.0.1.tar.gz Description: GNU Zip compressed da

[Gambas-user] gambas3 print image

2010-12-06 Thread wally
Hello, may anybody be so kind and post a code snippet how to print an image to the printer. An url to an examplecode is also highly welcome. Thanks. wally -- What happens now with your Lotus Notes apps - do you make anot