Yeah, I am pretty sure "&" is a bit-and action. 

Good luck.  


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 11, 2006 2:46 PM
To: CF-Talk
Subject: Re: another java question

Ben Nadel wrote:
> I think that >> is a bit shifting operation (which I haven't done in 
> YEARS). ColdFusion has BitSHLN() and BitSHRN() to hand left and right 
> bit shifting. That's about all the input I can give you.

That's helful.... so now I'm faced with this:

r += f * ((rgb >> 16) & 0xff);

now:

somevar = BitSHRN(rgb, 16);
r = r + somevar & 0xff;

I'm guessing that's a bitAnd ... so maybe this would work:

r = r + bitAnd(somevar,255);

but I may not figure out if it works until tomorrow.. I'll try to
remember to post =)

Rick






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263586
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to