On Thu, Nov 19, 2009 at 5:15 PM, Daniel MAINEULT <span dir="ltr"><<a href="mailto:daniel.maineult@neuf.fr">daniel.maineult@neuf.fr</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Mike,<br><br>me work under linux Fedora 11 <br>I have the problem with the two following versions:<br><br>grads 2.0.a7 and opengrads 2.0.a5.oga.5<br><br>Impossible to use a resolution 720*576 or 960*576 the transparency doesn't function<br>
but with 800*640 it is ok. <br>I need to use formats broadcasts.<br><font color="#888888"><br></font></blockquote><div> </div><div>The command version of<b> gxyat</b> has a more flexible transparency capability which allows each color you define to have its own transparency level (the so-called alpha channel). In particular, it can emulate the -t option of printim and it does work with any resolution. Here is an example:</div>
<div><br></div><div>ga-> open model</div><div>ga-> set_rgba 60 125 125 125 0 1</div><div><div>ga-> set ccols 1 2 3 4 5 6 60 t.</div><div>ga-> set clevs 500 600 700 800 900 1000 </div><div>ga-> d ps</div>
<div>ga-> gxyat -x 1600 -y 1200 img.png </div></div><div><br></div><div>As a bonus, you get anti-aliased fonts. Here is the syntax of the <span class="Apple-style-span" style="background-color: rgb(255, 255, 0);">set_rgba</span> command that Pablo Romero contributed:</div>
<div><br></div><div>NAME</div><div> set_rgba - define color including alpha channel</div><div><br></div><div>SYNOPSIS</div><div> set_rgba color red green blue alpha [mask]</div><div><br></div><div>DESCRIPTION</div>
<div> This User Defined Command (UDC) defines *color* given its</div><div> RGB triplet along with its *alpha* channel.</div><div><br></div><div> color integer in the range [16-255]</div><div> red, </div>
<div> green,</div><div> blue integers in the range [0-255]</div><div> alpha float, with alpha ranging from 0.0 (fully transparent)</div><div> to 1.0 (fully opaque).</div><div><br></div><div> The optional parameter *mask* determines whether the color below</div>
<div> it is visible or not.</div><div><br></div><div> mask=0 --- if alpha<1, *color* will be semi-transparent and the</div><div> colors below it will be visible (default)</div><div> mask=1 --- if alpha<1, *color* will be semi-transparent but the</div>
<div> colors below it will *not* be visible </div><div><br></div><div>EXAMPLE</div><div> In order to emulate the -t option in printim </div><div><br></div><div> ga-> set rgb 60 125 125 125</div>
<div> ga-> printim img.png -t 60</div><div><br></div><div> Specify alpha=0 and mask=1</div><div><br></div><div> ga-> set_rgba 60 125 125 125 0 1</div><div> ga-> gxyat img.png</div><div><br>
</div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>