Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
Fabien, thank you for your tips. I cannot remove fr.cached = True before the file open dialog comes up: Dialog.Title = "Save image file..." ... If I do remove the line, the file dialog comes to halt, taking minutes to display a single file entry. Maybe may Gambas application is refreshing i

Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
Thanks for the link to sourceforge. - Before you criticise someone, you should walk a mile in his shoes. Because, when you criticize then, and he gets angry, you'll be a mile away - and have his shoes. -- View this message in context: http://gambas.8142.n7.nabble.com/Paint-an-image-tp4434

Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
works fine? I suspect that on the first run, you see some sort of blue-ish stripes, and what happens after "Load" and selecting a PPM image? On my system, nothing happens if I use "Paint.DrawImage". Only if use the Paint.brush method, it works, and the loaded image is displayed. ?? Regards, ukimi

Re: [Gambas-user] Paint an image

2013-11-24 Thread Fabien Bodard
work fine here 2013/11/24 Fabien Bodard : > remove all the occurence on fr.cached... this is not needed at all > (there is some with = true) > > remove fr.clear (this is slow and uneeded in the _draw event) > > 2013/11/24 Tobias Boege : >> On Sun, 24 Nov 2013, ukimiku wrote: >>> Hi Tobi, >>> >>> t

Re: [Gambas-user] Paint an image

2013-11-24 Thread Fabien Bodard
remove all the occurence on fr.cached... this is not needed at all (there is some with = true) remove fr.clear (this is slow and uneeded in the _draw event) 2013/11/24 Tobias Boege : > On Sun, 24 Nov 2013, ukimiku wrote: >> Hi Tobi, >> >> this is very kind of you. Your sample project works like a

Re: [Gambas-user] How Stream.ByteOrder ?

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, Ru Vuott wrote: > Hello, > > I would like to see an simple, but complete example about "Stream.ByteOrder " > property. > > Thanks > > vuott Well, I won't give you a complete project because I also have work to do but here you have an idea: try to parse a .bmp file with Gam

Re: [Gambas-user] Paint an image

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, ukimiku wrote: > Hi Tobi, > > this is very kind of you. Your sample project works like a charm: I see the > pixels update and change color randomly. > > The problem with my project is: After I fill my image with color data, it > gets displayed correctly. Then I fill in new co

Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
Hi Tobi, this is very kind of you. Your sample project works like a charm: I see the pixels update and change color randomly. The problem with my project is: After I fill my image with color data, it gets displayed correctly. Then I fill in new color data, and it is not being updated anymore. Whi

Re: [Gambas-user] How Stream.ByteOrder ?

2013-11-24 Thread Benoît Minisini
Le 24/11/2013 17:32, Ru Vuott a écrit : > Hello, > > I would like to see an simple, but complete example about "Stream.ByteOrder " > property. > > Thanks > > vuott > The stream ByteOrder property defines the byte order (little endian or big endian) used by the READ and WRITE instructions when us

Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
Monsieur, here is a demo project I uploaded: Link: https://www.dropbox.com/s/aztacpsshfo3h4i/Fr002DrawImage.zip Basically, click on "Load", and you are prompted for a binary PPM or PGM file. The picture is then displayed. If you click on "Save", you can select a new filename and save the picture

Re: [Gambas-user] Paint an image

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, ukimiku wrote: > No, I am not calling "Refresh" in the mousemove event, only once after the > image data has been read in. > > I set "cached" to "False". Still, the image does not appear with > "DrawImage". But with painted brushes, it works. I can live with that. I > just wis

Re: [Gambas-user] Paint an image

2013-11-24 Thread Benoît Minisini
Le 24/11/2013 19:14, ukimiku a écrit : > No, I am not calling "Refresh" in the mousemove event, only once after the > image data has been read in. > > I set "cached" to "False". Still, the image does not appear with > "DrawImage". But with painted brushes, it works. I can live with that. I > just w

Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
No, I am not calling "Refresh" in the mousemove event, only once after the image data has been read in. I set "cached" to "False". Still, the image does not appear with "DrawImage". But with painted brushes, it works. I can live with that. I just wished I understood the logic behind why some of th

Re: [Gambas-user] Paint an image

2013-11-24 Thread Fabien Bodard
are you calling the refresh in the mousemove event ? 2013/11/24 Fabien Bodard : > set cached to false !! > > > 2013/11/24 ukimiku : >> Hi Tobias, >> >> thanks for looking into this: >> >> In the fr.Draw() event handler, when I plot my image pixel by pixel, using >> this code: >> >> For y = 0 To

Re: [Gambas-user] Paint an image

2013-11-24 Thread Fabien Bodard
set cached to false !! 2013/11/24 ukimiku : > Hi Tobias, > > thanks for looking into this: > > In the fr.Draw() event handler, when I plot my image pixel by pixel, using > this code: > > For y = 0 To img.Height - 1 > For x = 0 To img.Width - 1 > Draw.Foreground = img[x, y] >

[Gambas-user] How Stream.ByteOrder ?

2013-11-24 Thread Ru Vuott
Hello, I would like to see an simple, but complete example about "Stream.ByteOrder " property. Thanks vuott -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech

[Gambas-user] Reproducible problem with Image.Clear

2013-11-24 Thread ukimiku
My program ran fine until I inserted the line "img.Clear" "img" is of type Image and properly instantiated. In the project, I already used "img" to store integers as color values for the pixels. The line crashed the first time Gambas tried to execute it. I can reproduce it as often as I like. I h

Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
Hi Tobias, thanks for looking into this: In the fr.Draw() event handler, when I plot my image pixel by pixel, using this code: For y = 0 To img.Height - 1 For x = 0 To img.Width - 1 Draw.Foreground = img[x, y] Draw.Point(x, y) Next Next the image appears. But this

Re: [Gambas-user] Paint an image

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, ukimiku wrote: > Hi Fabien, > > thank you for your prompt reply. I must be missing something, I guess. It > still does not display the image. > > In the Form_open event, I set >fr.cached = false > > I see the effect when I drag the window with the mouse. It is slow and a

Re: [Gambas-user] Paint an image

2013-11-24 Thread ukimiku
Hi Fabien, thank you for your prompt reply. I must be missing something, I guess. It still does not display the image. In the Form_open event, I set fr.cached = false I see the effect when I drag the window with the mouse. It is slow and a bit jerky as, I guess, the redrawing is taking place

Re: [Gambas-user] Paint an image

2013-11-24 Thread Fabien Bodard
> Public Sub fr_Draw() > Paint.Begin(fr) > fr.Background = Color.RGB(100, 140, 180) > > Paint.Image(img, 0, 0) > > paint.End > > End cached must be false and never set this property in the draw event ... but before... then if you put the cached property to true, the draw event is not fir

[Gambas-user] Paint an image

2013-11-24 Thread Michael Kuyumcu
Dear list members, in my program I seemingly cannot get an image to be painted. I have a DrawingArea called "fr". In memory I keep an image named "img". In my form code, I declare public img as image In the Form_Open handler, I instantiate "img" with img = New Image(fr.Width, fr.Height

Re: [Gambas-user] gb.web how to grab using post and get?

2013-11-24 Thread Fabien Bodard
2013/11/23 PICCORO McKAY Lenz : >> Request[] works whatever the request type (GET or POST). I have no > i suspect that, ... >> problem with that, so I guess your problem comes from something else. >> >> Can you do the following? >> >> - Use Gambas 3.5.1. > why? www.gambasforge.org/index.html was bu