Jump to content
Sign in to follow this  

Problem Creating RGB Func

Recommended Posts


I think I may have fixed my own problem. I found this website showing a different formula.

MsgBox(0, "", RGB(0, 255, 0))

Func RGB($iRed, $iGreen, $iBlue)
    Return ($iRed * 65536) + ($iGreen * 256) + $iBlue

That seems to work, maybe the other formula was for finding out BGR?

Anyways I would recommend a function like this to be added to Color.au3, it only makes sence to :D

Edit: Would anyone mind telling me if this formula is correct, I have a hunch my success will be shortlived :D

Edited by Emperor

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.