Search found 518 matches

by stevedee
Friday 11th May 2018 2:14pm
Forum: General
Topic: Highlight next file in list after deletion
Replies: 7
Views: 8823

Re: Highlight next file in list after deletion

cogier wrote: Thursday 10th May 2018 7:37pm ...I have had another go...
It looks good to me, thanks Charlie!
by stevedee
Friday 11th May 2018 9:35am
Forum: Lounge
Topic: Gambas 3.11 is out
Replies: 13
Views: 18455

Re: Gambas 3.11 is out

...is NÒT included in the Ubuntu 18.04 repositories!... Could you try again as this might have been sorted earlier this week:- https://translate.google.com/translate?hl=en&sl=es&u=https://www.gambas-es.org/viewtopic.php%3Ff%3D1%26t%3D6934&prev=search I haven't upgraded my Lubuntu yet be...
by stevedee
Thursday 10th May 2018 3:31pm
Forum: General
Topic: Highlight next file in list after deletion
Replies: 7
Views: 8823

Re: Highlight next file in list after deletion

On second thoughts, I probably should have explained my app as an example of what I wanted to do; When I open my BatCallSorter I view a folder containing short bat recordings (...the recordings are short, not necessarily the bats). The app shows a spectrogram image for each highlighted file. As I 'a...
by stevedee
Thursday 10th May 2018 3:16pm
Forum: General
Topic: Highlight next file in list after deletion
Replies: 7
Views: 8823

Re: Highlight next file in list after deletion

Hi Steve, I tried my program again without issue, the next file is selected and the program closes without any errors. See here http://www.cogier.com/stevedee/stevedee-20180510-1.webm . I'm using Linux Mint 18.3 with the Cinnamon desktop and Gambas 3.10 Or did I miss the point due to being so old? ...
by stevedee
Thursday 10th May 2018 12:13pm
Forum: General
Topic: Highlight next file in list after deletion
Replies: 7
Views: 8823

Re: Highlight next file in list after deletion

Hi Charlie, thanks for your input. Unless I'm missing something, I don't think your solution meets the requirements of highlighting the next file in the list after the one that has been deleted. It seems to me that the FileView control should have included an "Index" property (as the ListB...
by stevedee
Wednesday 9th May 2018 11:03am
Forum: General
Topic: Highlight next file in list after deletion
Replies: 7
Views: 8823

Highlight next file in list after deletion

I find it annoying when working through a list of files in a FileChooser, that when I delete one, I lose my place. I want the FileChooser to highlight the next file following the deleted one. Recently, when building my BatCallSorter, I fixed this issue in my code by finding the name of the next file...
by stevedee
Friday 16th March 2018 6:40pm
Forum: General
Topic: Individual color values of a pixel?
Replies: 8
Views: 14197

Re: Individual color values of a pixel?

I think the problem with blue & red being switched is because Gambas thinks the format of my Gimp image is RGBA (which it reads low byte to high byte) where the hex value 0000ff is interpreted as red. But my Gimp image interprets this as blue (i.e. RRGGBB, high byte to low byte). See http://gamb...
by stevedee
Friday 16th March 2018 12:05pm
Forum: General
Topic: Individual color values of a pixel?
Replies: 8
Views: 14197

Re: Individual color values of a pixel?

OK, Take 2. I created a new GUI project and added a button, a text box and 3 labels to the form. Public Sub btnGetData_Click() Dim hImage As Image Dim Pixels As Integer[] Dim intPixie As Integer hImage = Image.Load(txtImageFile.Text) 'the test image Pixels = hImage.Pixels intPixie = Pixels[1] Label1...
by stevedee
Friday 16th March 2018 9:48am
Forum: General
Topic: Individual color values of a pixel?
Replies: 8
Views: 14197

Re: Individual color values of a pixel?

...how can I extract the integer value for each of the red, green and blue channels for that pixel? I think you need the gb.Image.Effect component, and basically do something like:- hImage = Image.Load(strFilePath) 'load photo hHisto = hImage.Histogram() For index = 0 To 255 lngRedPixel = hHisto[Im...
by stevedee
Monday 5th March 2018 8:18pm
Forum: General
Topic: Image manipulation
Replies: 7
Views: 9765

Re: Image manipulation

...and here is an example using my code.

The following 2 images where time-lapse photos taken with my trail-cam:
image1.jpg
image1.jpg (106.84 KiB) Viewed 9753 times
image2.jpg
image2.jpg (107.07 KiB) Viewed 9753 times
...and here is the result...
image3.jpg
image3.jpg (7.36 KiB) Viewed 9753 times
only unique pixels in image1 are reproduced in image3.