|
From: Daniel J S. <dan...@ie...> - 2006-06-19 19:54:19
|
Daniel J Sebald wrote:
> Nothing like cow plots to motivate someone from the dairy state. (Actually, it just keeps slipping my mind.) Well, to get started, I'm going to add IC_RGBA to the list, i.e.,
>
> typedef enum t_imagecolor { IC_PALETTE, IC_RGB, IC_RGBA }
> t_imagecolor;
>
> and adjust things accordingly to all the terminal drivers. The advantage of this, as opposed to simply changing IC_RGB to IC_RGBA is data reduction across the pipe in the case of X11 and generally just data reduction whenever. (I'm always for data reduction when 2D types of elements, e.g. surfaces, images, etc. are in play.)
And as for command line syntax, we'll have "with rgbaimage" in a fashion similar to "rgbimage"? What about the possibility of mapping a particular pixel value to transparent, as I imagine a lot of glyphs might do? (Of course, we do that internally by playing a game with the alpha channel for images before we send it to the terminal driver.) For pm3d types of things we might just not plot the element associated with a transparent value.
gnuplot> set transparent 255
Then again, a lot of palette based images don't have alpha blending... Am I worrying about a non-problem?
Dan
|