Re: Opacity in Image.getPixelReader.getColor()

2014-03-19 Thread Jim Graham
Kevin and Jasper hit the nail on the head (Jasper's comment that the words are usually associated with particular ranges is mostly true AFAIRemember, but I can't guarantee it). If there is part of the documentation here that could be made clearer, let us know...

Re: Opacity in Image.getPixelReader.getColor()

2014-03-17 Thread Jasper Potts
My understanding is alpha and opacity are same just different range. Opacity is 0.0 to 1.0 Alpha is 0 to 255 Jim or Kevin will be authority on this. Jasper On Mar 16, 2014, at 5:55 AM, Tom Schindl tom.schi...@bestsolution.at wrote: Hi, Maybe I'm completely wrong but to me it looks

Re: Opacity in Image.getPixelReader.getColor()

2014-03-17 Thread Gerrit Grunwald
+1 Am 17.03.2014 um 17:51 schrieb Jasper Potts jasper.po...@oracle.com: My understanding is alpha and opacity are same just different range. Opacity is 0.0 to 1.0 Alpha is 0 to 255 Jim or Kevin will be authority on this. Jasper On Mar 16, 2014, at 5:55 AM, Tom Schindl

Re: Opacity in Image.getPixelReader.getColor()

2014-03-17 Thread Kevin Rushforth
I'm sure Jim could word this better, but here goes... Opacity and alpha are mostly used interchangeably. Whether the range is expressed as a normalized value [0.0,1.0] or an 8-bit pixel value [0,255], the meaning is the same. A value of 0 means that the color is completely transparent. When

Re: Opacity in Image.getPixelReader.getColor()

2014-03-17 Thread Tom Schindl
Hi, Yes it looks like i mixed this up with transparency! Tom On 17.03.14 10:03, Kevin Rushforth wrote: I'm sure Jim could word this better, but here goes... Opacity and alpha are mostly used interchangeably. Whether the range is expressed as a normalized value [0.0,1.0] or an 8-bit pixel

Opacity in Image.getPixelReader.getColor()

2014-03-16 Thread Tom Schindl
Hi, Maybe I'm completely wrong but to me it looks like the opacity I get from Image.getPixelReader.getColor() is wrong. If not mistaken the relation between alpha and opacity is expressed with: opacity = (255 - alpha) / 255.0 which means: opacity 0 = alpha 255 opacity 1 = alpha 0 Running the