On Mon, 17 Aug 2009 18:01:59 +0700 Mikhail Gusarov <dotted...@dottedmag.net>
said:

> 
> Twas brillig at 20:23:17 17.08.2009 UTC+10 when ras...@rasterman.com did gyre
> and gimble:
> 
>  CHR> hmm - no that's grayscale. grayscale is a gray only verison of
>  CHR> pseudocolor.  staticgray == linear allocation of gray values (ie
>  CHR> what i described). at least so it says in the x protocol reference
>  CHR> manual X11 release 6, page 412 and 417.  :)
> 
> "For PseudoColor, a pixel value indexes a colormap to produce
> independent RGB values; the RGB values can be changed
> dynamically. GrayScale is treated in the same way as Pseudo- Color
> except which primary drives the screen is undefined; thus, the client
> should always store the same value for red, green, and blue in
> colormaps."
> 
> "StaticColor is treated in the same way as PseudoColor except the
> colormap has predefined read-only RGB values, which are
> server-dependent. StaticGray is treated in the same way as StaticColor
> except the red, green, and blue values are equal for any single pixel
> value, resulting in shades of gray."
> 
> So, PseudoColor -> RGB palette, may be changed. GrayScale -> grayscale
> palette, may be changed.
> 
> StaticColor -> RGB palette, predefined colors. StaticGray -> grayscale
> palette, predefined colors.
> 
> Hence, no direct grayscale visual, only palettized ones :(

from the same book:

StaticGray
  StaticGray can be viewed as a degenerate case of GrayScale, in which the gray
values are predefined and read-only. The values are typically in a linear or
near-linear increasing ramps.

linear. increasing. typically. :) (i assume non-linear would imply a curved
set as opposed to going up then down then up again in value for example - so
it may be gamma-corrected thus implying non-linear (curve)).



-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to