Henning Hraban Ramm wrote:
I'd like to place some plain photos rotated (say 12°) and with a blurred
shadow above some colored elements, i.e. the shadow must use transparency.
I guess I could get such using ImageMagick, but is there a possibility
using ConTeXt or one of its favourite friends?
I'd prefer a solution that works with CMYK data.
Creating a semi-transparent backdrop with metapost is quite simple,
but I am not sure whether that works with cmyk, you'll have to try
yourself. Code goes something like this:
\startuniqueMPgraphic{texthole}
for dx = 0 upto 40:
dy := dx;
wa := 10 + dx;
wb := \overlaywidth - dx - 10;
ha := dy + 10;
hb := \overlayheight - dy - 10;
fill (wa,ha)--(wb,ha)--(wb,hb)--(wa,hb)--cycle
withcolor transparent("normal", .04,white);
endfor;
\stopuniqueMPgraphic
If there isn't - is the transparency of PNG usable?
Sure, and may use less resources than mp drawings, but that is
definitely RGB
Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________