Jump to content

question about pixelgetcolor SOLVED


joeyone
 Share

Recommended Posts

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
Link to comment
Share on other sites

#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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...