[NTG-context] transluency/transparency

Mojca Miklavec mojca.miklavec.lists at gmail.com
Mon Jun 4 16:36:31 CEST 2012


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


More information about the ntg-context mailing list