From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Drawing in images? Date: Wed, 26 Aug 2009 17:05:44 +0800 Message-ID: <4A94FAE8.2080302@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251277668 16239 80.91.229.12 (26 Aug 2009 09:07:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 09:07:48 +0000 (UTC) Cc: joakim@verona.se, Emacs Development To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 26 11:07:41 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgETi-0004RP-M2 for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2009 11:07:38 +0200 Original-Received: from localhost ([127.0.0.1]:42514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgETi-0005Ln-3w for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2009 05:07:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgESu-000536-1z for emacs-devel@gnu.org; Wed, 26 Aug 2009 05:06:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgESo-00051C-OD for emacs-devel@gnu.org; Wed, 26 Aug 2009 05:06:46 -0400 Original-Received: from [199.232.76.173] (port=45582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgESn-00050y-VD for emacs-devel@gnu.org; Wed, 26 Aug 2009 05:06:42 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:53901) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgESn-00077J-44 for emacs-devel@gnu.org; Wed, 26 Aug 2009 05:06:41 -0400 Original-Received: by ewy7 with SMTP id 7so4035487ewy.31 for ; Wed, 26 Aug 2009 02:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=E+ZZOO633CFPutVXz3cIJGg36Flplj2LsZ4WRgLIGhI=; b=azxneCe51ISI/rpAU32uytNawCBQQsT7S9FUIfYkf7ojlEtDlQs57iN7tZxxspMLlh 8Jq8/jxvb1/wqHkNXdYwy4ehMZhpbYVtX74HDPZAKx6tR3Lh88JVsoM2q6b6ncXUzcim b4b2BlMhwiYOGEOczg5JvplhKRklqCy1hpCZw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=n4xfmCM6abbZqGkrzu2iXsoyUbOxuHRmUPur9HLQnNMeyHcSPNk99PHp9M3s0hsBts T4By9QmGhprmH1rePxzUCVex+h9FCFUfdnwlbN/ug4MpdAH8ncwE3RMqrUjd16btblQd nFZShrwWu9M/MDp15PW3oJjzbmNeMfqpGkm8E= Original-Received: by 10.210.20.10 with SMTP id 10mr7856352ebt.72.1251277599533; Wed, 26 Aug 2009 02:06:39 -0700 (PDT) Original-Received: from ?192.168.0.4? (80-42-58-76.dynamic.dsl.as9105.com [80.42.58.76]) by mx.google.com with ESMTPS id 24sm2338518eyx.19.2009.08.26.02.06.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 Aug 2009 02:06:35 -0700 (PDT) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114613 Archived-At: Stefan Monnier wrote: > Maybe a good way to do it would be to allow stacking images (in your > case, the bottom one could use any image library, and the top one could > use SVG to draw the region boundary). > For this use case at least, this method seems cleaner than changing the actual image, since the overlaid rectangle is transient. I wonder if compose-character has some of the code you need already?