1.03 for download if someone interested.
Just to have peace of mind
I modified the border-thing.
Now the pixels-buffer's color around the image is the most used color in the source image.
I added this proc
Code: Select all
; Find the n most used colors in the passed image
; The desired n number of colors is specified through the sizing of array iaMostused()
; The returned value is the number of colors copied in the array
; If the returned value is less than n, than the number of colors of the image was less than n
; and the remaining items of the array are filled with zeros
; The colors are sorted in descending order, from the most used (first item) to the less used (last item)
Declare.i Find32BitImageMostUsedColors (hImage, Array iaMostUsed(1))
I use it to find the most (one, single) used color but can be useful to find the n most used too.
Ah, fixed a couple of "256" that should have been "255". Mixing Dims and actual sizes is always a pain in the... back.
See first post for dl.
Bye!