--- In [EMAIL PROTECTED], "stindlpeter" <[EMAIL PROTECTED]> 
wrote:
> How can I calculate the color code for Format Item by using the 
> information RGB out of win.getpixel?
> 
local pixcol=win.getpixel(...)
local ficol = word(pixcol, 1)+(256*(word(pixcol,2)+256*word
(pixcol,3))

if that does not work, reverse the 1 and 3 in above.

Its basically taking the three colors from win.getpixel number and 
combining into lower three bytes of one integer; not sure if format 
item wants red or blue as low byte).


> Format Item is using an internal color code what is different - 
> getting it with win.debug(inputcolor) out of the color selection 
is 
> nice. But I have to transform RGB by calculation to the number 
that 
> Format Item needs.
> 
> I know that there is a genius working hard on the new CL.xxx 
plugin 
> what will make this obsolete... But it will come somewhen in the 
> future... On the other hand the same genius promised a new release 
of 
> PowerPro perhaps even for this weekend. I am in a different 
timezone. 
> Here is not so much time left anymore ;-)



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
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