Jump to content
Sign in to follow this  
joeyone

question about pixelgetcolor SOLVED

Recommended Posts

joeyone

if i have for example some different color codes

16645495

16645495

16448117

16448116

16513910

16513909

16513653

16448116

and then instead of having the whole code i just want to have the first three numbers in the code

like this

166

166

164

164

165

165

165

164

so how can i turn colorcodes to only the first 3 digits?

Edited by joeyone

Share this post


Link to post
Share on other sites
Wooltown

Exactly what are you trying to do ????

Share this post


Link to post
Share on other sites
CoePSX

#include <Color.au3>

; Get the RED part of the color
MsgBox (0, "Color", _ColorGetRed (0xFFAA66))

; Get the first 3 digits of the decimal color representation
MsgBox (0, "Color", StringLeft (String (16448117), 3))


[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post


Link to post
Share on other sites
joeyone

thats exactly what i wanted thanks alot!

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  

×