Search found 11 matches

by vuott
Monday 11th June 2018 10:22pm
Forum: General
Topic: Children problem
Replies: 4
Views: 71

Re: Children problem

Sometimes Gambas has problems with GTK..... :?
by vuott
Monday 11th June 2018 6:56pm
Forum: General
Topic: Children problem
Replies: 4
Views: 71

Re: Children problem

Do you want to destroy every PictureBox ?
by vuott
Monday 28th May 2018 7:36pm
Forum: General
Topic: Loading an Image/Picture from memory
Replies: 3
Views: 97

Re: Loading an Image/Picture from memory

Well, so I simply answer this your question: I have read in a PNG as a string of bytes, and I am looking for a way to convert that string of bytes to an Image or Picture type, to display to a canvas. ...and this's my code: :| Public Sub Form_Open() Dim pc As Picture pc = Picture.FromString(File.Load...
by vuott
Monday 28th May 2018 2:04pm
Forum: General
Topic: Loading an Image/Picture from memory
Replies: 3
Views: 97

Re: Loading an Image/Picture from memory

Excuse me,
why Base64 ? :|
by vuott
Tuesday 10th April 2018 12:31am
Forum: General
Topic: DrawingArea help needed
Replies: 8
Views: 268

Re: DrawingArea help needed

cogier wrote:
Monday 09th April 2018 6:55pm
Unfortunately it doesn't tell you how to print the contents of a DrawingArea.
I suggest this Wiki page of italian forum:

http://www.gambas-it.org/wiki/index.php ... rawingArea
by vuott
Saturday 17th March 2018 11:36pm
Forum: General
Topic: Individual color values of a pixel?
Replies: 8
Views: 558

Re: Individual color values of a pixel?

Member of Italian Gambas forum, Gianluigi, suggests this other way (look at attached file)
by vuott
Saturday 17th March 2018 6:03pm
Forum: General
Topic: Individual color values of a pixel?
Replies: 8
Views: 558

Re: Individual color values of a pixel?

...a very little and simple code: Public Sub Button1_Click() Dim im As Image Dim px, n As Integer im = Image.Load("/path/of/my/file/image") For n = 0 To im.Pixels.Max px = im.Pixels[n] Print n, "Pixel: "; Hex(px, 6) Print Null, Hex(Shr(px, 16) And &FF, 2), Hex(Shr(px, 8) And &FF, 2), Hex(px And &FF,...
by vuott
Tuesday 06th March 2018 8:07am
Forum: General
Topic: How To Play Audio and Video With Gambas?
Replies: 3
Views: 335

Re: How To Play Audio and Video With Gambas?

I just would like to point out the specific " MediaPlayer " Class of the Gambas gb.media Component. Look this at: http://gambaswiki.org/wiki/comp/gb.media/mediaplayer Other and more generally on playing audio-video: http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Gestione_dei...
by vuott
Monday 12th June 2017 9:29pm
Forum: General
Topic: Object.Lock
Replies: 4
Views: 481

Re: Object.Lock

Does anybody have any example code using Object.Lock and Object.Unlock ? Just a little and simple example: Public Sub ToggleButton1_Click() If ToggleButton1.Value Then Object.Lock(Button1) ToggleButton1.Text = "Now Button1's locked !" ' Button1 click event will not be raised ! Else Object.Unlock(Bu...
by vuott
Friday 12th May 2017 1:55pm
Forum: General
Topic: Inkey
Replies: 9
Views: 1177

Re: Inkey

You might also try some other ways: - http://www.gambas-it.org/wiki/index.php?title=Immissione_di_dati_dalla_tastiera_durante_l%27esecuzione_di_un_programma#Invio_di_dati_dalla_tastiera_in_un.27applicazione_a_riga_di_comando - http://www.gambas-it.org/wiki/index.php?title=Individuare_i_tasti_della_t...