Hi Francesco,

hmm I suspect you are in 16 bit colour mode where highest value = 248
in 16 bit colour (i think)

change to 24/32 bit colour and things should work as normal.

Dave

PS for more colour stuff & imaging lingo try James Newton's book - its
the business for this sort of stuff, it will save you time.

----- Original Message -----
From: "Francesco Scarfato" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 04, 2002 6:36 AM
Subject: <lingo-l> bug in getPixel()?


> hello everybody, i've a trouble with getPixel.
> if fill the stage with shapes that have the follow color
>
> rgb(255, 000, 000) --> red
> rgb(000, 255, 000) --> green
> rgb(000, 000, 255) --> blu
>
> than i copy some shapes on the stage with fill (o simple drag on the
stage
> cast member that have these parameters).
> when i try to read the color of pixel on the stage with getPixel, as
in
> follow
>
> on mouseUp
>   put (the stage).image.getPixel(the mouseLoc)
> end
>
> i've these result
>
> instead of rgb(255, 000, 000) getPixel return rgb(248, 000, 000)
>    "       rgb(000, 255, 000)    "        "   rgb(000, 248, 000)
>    "       rgb(000, 000, 255)    "        "   rgb(000, 000, 248)
>
> and so on for every pure colors likes rgb(255, 255, 000) even rgb
(255, 255,
> 255) --> white is return as rgb(248, 248, 248)
>
> someone have a solution?
>
> enjoy

>



________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to