Re: A question about color ?
The GFXELEMENTID you're using requires a min and max color. If you want only a single color, make both values the same.
Additionally, the colors represented in the gfx files are decimal values. If you take an ARGB color such as blue (FF0000FF) and convert it to decimal, it would be "-16776961". Your Windows calculator can do this. (At least on Win7 it does)
Hope that helps.
Re: A question about color ?
Haha, that 's all i need ^^. Thank you very much. But i have a problem
I try convert "FF0000FF" to decimal , and i have "4278190335". Myself is difference with yourself. Do you know any websites to convert ARGB to Decimal except "Win 7 Calulator', because i use win xp ^^ ?
Re: A question about color ?
Quote:
Originally Posted by
goder2910
Haha, that 's all i need ^^. Thank you very much. But i have a problem
I try convert "FF0000FF" to decimal , and i have "4278190335". Myself is difference with yourself. Do you know any websites to convert ARGB to Decimal except "Win 7 Calulator', because i use win xp ^^ ?
Lol, that's the qword conversion. I'm sorry, I meant to mention that when you convert the hex, make sure it's on "Dword". This way it is 32 bit (FFFFFFFF)
Re: A question about color ?
Quote:
Originally Posted by
KOS_void
Lol, that's the qword conversion. I'm sorry, I meant to mention that when you convert the hex, make sure it's on "Dword". This way it is 32 bit (FFFFFFFF)
i converted -301308 Decimal to FFFB6704 Hex.
But when i try conver FFFB6704 Hex TO Decimal, it turn into "4294665988". Why it cant convert again into -301308 ??
Re: A question about color ?
Quote:
Originally Posted by
goder2910
i converted -301308 Decimal to FFFB6704 Hex, after i delete 2 'FF' to FB6704, i have red color.
But when i try conver FFFB6704 Hex TO Decimal, it turn into "4294665988". Why it cant convert again into -301308 ??
Hex numbers are almost always ASSUMED to be unsigned, nothing you can do about that, to see if the number is negative look at the binary itself (or use php's hexdex since that only gives signed numbers anyway)
Re: A question about color ?
Quote:
Originally Posted by
das7002
Hex numbers are almost always ASSUMED to be unsigned, nothing you can do about that, to see if the number is negative look at the binary itself (or use php's hexdex since that only gives signed numbers anyway)
So, i like black color and i want add it Color Max, how can i change Hex Black Color into Decimal ? Any idea ?:*:
Re: A question about color ?
Quote:
Originally Posted by
goder2910
So, i like black color and i want add it Color Max, how can i change Hex Black Color into Decimal ? Any idea ?:*:
Black is full off, or 000000 an int would just be 0
White is ffffff which is 16777215 since I'm assuming its using 24 bit color (like normal hex codes)
Re: A question about color ?
Quote:
Originally Posted by
das7002
Black is full off, or 000000 an int would just be 0
White is ffffff which is 16777215 since I'm assuming its using 24 bit color (like normal hex codes)
Haha, i found a way to add color:ott1:. We can add every kind of color code and client allways understand these code ^^
Thank dnas ^^