|
|
 |
Re: FN-FORUM the operator >>
date posted 15th January 2002 13:44
if memory serves me right, its the shift right - basically divides the first
variable/number by the 2 to the power of the second variable/number. afaik
its pretty standard an all the c-family languages.
from that code it seems to be checking colour depth
----- Original Message -----
From: "marco polo" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Tuesday, January 15, 2002 9:18 AM
Subject: FN-FORUM the operator >>
> hi there,
>
> i don't know where to ask this question in java newsgroups and i hope this
mailing list will help.
>
> i'm a java newbie and have frequently come across codes like this:
>
> int r=(colorval >> 16) & 0xff;
>
> int g=(colorval >> 8) & 0xff;
>
> int b= colorval & 0xff;
>
> can anybody here explain how this operator work?
>
> marco
>
>
>
> --------------------------------------------------------------------------
------
> Send and receive Hotmail on your mobile device: Click Here
> ============================================================ * Free
listing for freelancers * Free to advertise jobs * Free jobs distribution
service * Free database of 5000 freelancers Freelancers and Freelance Jobs:
http://www.freelancers.net Forum FAQs: http://freelancers.netrickery.com To
unsubscribe please email:
[EMAIL REMOVED] If you have
difficulties unsubscribing please email: [EMAIL REMOVED]
>
|
 |
|