Re: [NTG-context] transluency/transparency
On Mon, 4 Jun 2012 10:33:14 +0200 Jan Pohanka xhpoha...@gmail.com wrote: Hello, is it possible to somehow set transluency or transparency of several objects? The example should clarify, what I need: I have a template for company documents, which has some text, lines and graphics (external pdf or png) in its footer. Now I want to make the header be less visible than the rest of the page. Surely I can set a color of the text to gray and edit the image, but is there some other way? best regards Jan See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; (this example draws the picture alongside its softened copy.) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] transluency/transparency
See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; thank you for the hint, but it seems, that softened does not work for externalfigure \startMPcode draw externalfigure logo.pdf scaled 5cm softened 0.5; \stopMPcode inserted text ...lable:=true; ]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... regards Jan -- Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: http://www.opera.com/mail/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] transluency/transparency
On Jun 4, 2012, at 5:45 AM, Jan Pohanka wrote: See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; thank you for the hint, but it seems, that softened does not work for externalfigure \startMPcode draw externalfigure logo.pdf scaled 5cm softened 0.5; \stopMPcode inserted text ...lable:=true; ]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... regards Jan What about drawing a translucent white rectangle over the graphic? This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] transluency/transparency
On Mon, Jun 4, 2012 at 2:02 PM, Rogers, Michael K wrote: On Jun 4, 2012, at 5:45 AM, Jan Pohanka wrote: See page 204, section 8.5 of the metafun book loadfigure gracht.mp number 1 scaled .5 ; addto currentpicture also (currentpicture softened .8) shifted (bbwidth(currentpicture)+.5cm,0) ; thank you for the hint, but it seems, that softened does not work for externalfigure \startMPcode draw externalfigure logo.pdf scaled 5cm softened 0.5; \stopMPcode inserted text ...lable:=true; ]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... regards Jan What about drawing a translucent white rectangle over the graphic? I wanted to say that Hans already implemented some code to add transparency (or even transparent masks) to bitmap images, but I'm still not sure how to use that code. However, drawing a transparent white rectangle over the bitmap graphic would definitely be the easiest approach if you don't need to see though the image. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___