From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59946 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: blurred shadow on images? Date: Wed, 30 Jun 2010 22:47:58 +0200 Message-ID: <4C2BAD7E.9090004@googlemail.com> References: <4C1F09F1.6030404@elvenkind.com> <2AB09333-C25D-4034-865C-B5A4557B6193@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277930895 17869 80.91.229.12 (30 Jun 2010 20:48:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 20:48:15 +0000 (UTC) Cc: Henning Hraban Ramm To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 30 22:48:13 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 1OU4Ca-00082a-Di for gctc-ntg-context-518@m.gmane.org; Wed, 30 Jun 2010 22:48:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 02B22C9AE3; Wed, 30 Jun 2010 22:48:11 +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 YvFaDHmOxUGL; Wed, 30 Jun 2010 22:48:07 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 967C0C9A9C; Wed, 30 Jun 2010 22:48:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0D616C9A9C for ; Wed, 30 Jun 2010 22:48: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 TsqL0Fl-bCzy for ; Wed, 30 Jun 2010 22:48:03 +0200 (CEST) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by balder.ntg.nl (Postfix) with ESMTP id 8548AC9A8A for ; Wed, 30 Jun 2010 22:48:03 +0200 (CEST) Original-Received: by wwd20 with SMTP id 20so95295wwd.2 for ; Wed, 30 Jun 2010 13:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=C50BhFS16IUAjC9uY3/lvJVP6xH575TB2KBaBz9n3z0=; b=N5xuJQg0OHbQBGGfEMvXrm6j8cx2LwgqM6NRKXkMcsL2CRt2rm8aSKPPrmrTJyV+6c lOd8WwMqaijOtEkxqfX7vobU0AgBG3InSihAlqeWfSDJAZ8G6GdzkEDdW4eN8mVpQarH wn/6DPgW83YYUPMbQAB4V0u/ZBNDK7+8MbWTI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=T2B+HST99pTdVH3yBDNErYk45vQux48sbrrSre6y86LMz2X0DNsxFS4WaSv/uFbYLP Igxuf4hffI440LkVQg+KlDfghoJVeiiiyPKtsJL2v3222JeV0DeyGmhEtEgY8S1KptBk UY8y2/S0aPohqJIgNxOzYW5YX19QGEOuXHwLg= Original-Received: by 10.216.185.78 with SMTP id t56mr7403887wem.40.1277930882674; Wed, 30 Jun 2010 13:48:02 -0700 (PDT) Original-Received: from rover.fritz.box (dslb-094-217-199-163.pools.arcor-ip.net [94.217.199.163]) by mx.google.com with ESMTPS id l66sm2249981weq.45.2010.06.30.13.47.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Jun 2010 13:48:00 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 In-Reply-To: <2AB09333-C25D-4034-865C-B5A4557B6193@fiee.net> 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:59946 Archived-At: Am 30.06.10 14:39, schrieb Henning Hraban Ramm: > 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. You can change the boundingbox in the metapost graphic (the white background was required for the cow figure because it has a transparent background) \startuniqueMPgraphic{shadow} for dx = 0 upto 40: dy := dx ; wa := dx - 10 ; 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; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow][\useMPgraphic{shadow}] \starttext \externalfigure[cow][width=50mm,background={shadow,color},backgroundcolor=white] \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________