From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59939 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: blurred shadow on images? Date: Wed, 30 Jun 2010 14:39:55 +0200 Message-ID: <2AB09333-C25D-4034-865C-B5A4557B6193@fiee.net> References: <4C1F09F1.6030404@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277901610 32011 80.91.229.12 (30 Jun 2010 12:40:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 12:40:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 30 14:40:08 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OTwaG-0002mH-0a for gctc-ntg-context-518@m.gmane.org; Wed, 30 Jun 2010 14:40:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0143C9B16; Wed, 30 Jun 2010 14:40:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C+vNwEppl3Fe; Wed, 30 Jun 2010 14:40:01 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03ECDC9ABB; Wed, 30 Jun 2010 14:40:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5ED0C9ABB for ; Wed, 30 Jun 2010 14:39:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qv3I4EIOBBRe for ; Wed, 30 Jun 2010 14:39:57 +0200 (CEST) Original-Received: from turan.fiee.net (turan.fiee.net [87.230.77.106]) by balder.ntg.nl (Postfix) with ESMTP id 57B45C9A9C for ; Wed, 30 Jun 2010 14:39:57 +0200 (CEST) X-No-Auth: unauthenticated sender Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [127.0.0.1]) by turan.fiee.net (Postfix) with ESMTP id 394FB17BC0290 for ; Wed, 30 Jun 2010 14:39:56 +0200 (CEST) Original-Received: from [10.128.9.9] (116-189.77-83.cust.bluewin.ch [83.77.189.116]) by turan.fiee.net (Postfix) with ESMTP for ; Wed, 30 Jun 2010 14:39:55 +0200 (CEST) In-Reply-To: <4C1F09F1.6030404@elvenkind.com> X-Mailer: Apple Mail (2.936) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59939 Archived-At: Am 2010-06-21 um 08:42 schrieb Taco Hoekwater: > 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: For the records: This is, how I'll use it: \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, black); endfor; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{texthole}] \starttext \rotate[rotation=12]{% \framed[height=50mm, width=50mm, frame=off, background=shaded, backgroundoffset=5mm, align=middle]% {\offset[x=1mm,y=-2mm]{\externalfigure[koe][width=50mm]}}% } \stoptext I'm glad I found \offset, because framed's offset parameter can't distinguish x and y offset. Positive offset moves right and down, negative offset moves just up - I guess that's a buglet. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________________ 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 ___________________________________________________________________________________