Android Question Colour Picker from GIMP to B4A

Azhar

Active Member
Licensed User
Longtime User
Hello All,

I want to use GIMP to pick a pixel colour using the colour picker tool. It will give the actual RGB values.
But when I plug these values into B4A to colour a background, they do not match anywhere near like in the graphics package.

Case "orgblueabstractcrop.jpg"
intRed = 51
intGreen = 47
intBlue = 48
Case "redabstractcrop.jpg"
intRed = 37
intGreen = 0
intBlue = 3
Case "toptile.jpg"
intRed = 65
intGreen = 67
intBlue = 109
End Select
lblCellColour.Color = Colors.ARGB(255, intRed, intGreen, intBlue)

Any idea why?

Thanks,

Azhar
 

Attachments

  • RGB Colour.JPG
    RGB Colour.JPG
    77.2 KB · Views: 133

Azhar

Active Member
Licensed User
Longtime User
Whoops, this is totally my mistake. In GIMP, I had the colour picker RGB range set to 0..100 and not 0..255.

All is fine now.
 
Upvote 0
Top