swzoh wrote:
> sgp <[EMAIL PROTECTED]> wrote:
>   
>> Another small problem is the RGB output order, your script displays
>> decimal R G B
>> hex #BBGGRR
>>
>> In other utilities I usually see
>> dec R G B
>> hex #RRGGBB  <---
>>     

Actually, I think this is a big problem, not a little problem!  :)

> Yes, there are a confusion around this: RGB vs. BGR.
> I got the feeling that it may originate from big/little endianess.
>
> What I put is the Window convention, i.e., what  GetPixel produces.
> It's BGR actually, but, MS seems to call it RGB.
>   

That's not correct on a few points, Sean:

- Win.GetPixel returns the RGB value, not the BGR value.

- Win.GetPixel1() returns the Windows colour value (as you are 
describing), which can be converted to a BGR value directly with Win.Hex()

- There's no confusion surrounding this! (except where MS is concerned ;) 

- Hex colours have always been #RRGGBB, based on the X Windows 
standard.  As sgp indicates, #BBGGRR is not used anywhere (that I am 
aware of).  All graphics, web, development, animation, modelling, etc 
etc, applications use RGB format as standard.

- Colour values for screen use are always defined as RBG, whether hex 
[#RRGGBB] or Windows format [RGB(rrr,ggg,bbb)], while print colours are 
always defined as CMYK (or CMY).

Due to the last point above, (that all screen colours are always given 
as #RRGGBB), application for the ColorZoomer is currently limited -- it 
is returning #BBGGRR which I need to convert to #RRGGBB if I want to use 
it anywhere!

Be great if you could either have ColorZoomer return #RRGGBB too, or 
make it configurable for this..  :)

Thanks,
Karen




Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to