From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Elisp: Generating Image Files Date: Fri, 26 May 2017 11:52:53 +0200 Message-ID: <87bmqg0wsq.fsf@zigzag> References: <03f9204b-6298-2a29-ec35-90277dcc5acc@qlfiles.net> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1495797190 26905 195.159.176.226 (26 May 2017 11:13:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 May 2017 11:13:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 26 13:13:06 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEDB3-0006rE-2H for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2017 13:13:05 +0200 Original-Received: from localhost ([::1]:36045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEDB8-0001WQ-GQ for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2017 07:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEDAg-0001WD-MA for help-gnu-emacs@gnu.org; Fri, 26 May 2017 07:12:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEDAe-00026Z-9D for help-gnu-emacs@gnu.org; Fri, 26 May 2017 07:12:42 -0400 Original-Received: from mail.agora-net.com ([67.59.132.6]:44802) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEDAe-00026P-3y for help-gnu-emacs@gnu.org; Fri, 26 May 2017 07:12:40 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.82) (envelope-from ) id 1dEDAa-0008Fq-Rj for help-gnu-emacs@gnu.org; Fri, 26 May 2017 07:12:36 -0400 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1dEBvZ-0003FA-Qi for help-gnu-emacs@gnu.org; Fri, 26 May 2017 11:53:01 +0200 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <03f9204b-6298-2a29-ec35-90277dcc5acc@qlfiles.net> (Christopher Howard's message of "Fri, 19 May 2017 21:20:01 -0800") X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ttn@gnuvola.org X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 67.59.132.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113173 Archived-At: --=-=-= Content-Type: text/plain () Christopher Howard () Fri, 19 May 2017 21:20:01 -0800 Hi, is there a library for Emacs that would allow me to use elisp to generate an image file? E.g. a function that takes an array of RBGA color values and outputs a PNG file? I (wrote and) use xpm.el (et al): http://www.gnuvola.org/software/xpm/ You can generate XPM and convert to PNG (or any other format). In the source repo, see flower.el for an example program (that shows the Code Enhancement Opportunity that lies ahead. :-D). -- Thien-Thi Nguyen ----------------------------------------------- (defun responsep (query) (pcase (context query) (`(technical ,ml) (correctp ml)) ...)) 748E A0E8 1CB8 A748 9BFA --------------------------------------- 6CE4 6703 2224 4C80 7502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlkn+vcACgkQZwMiJEyAdQIkNwCg5DLZaZxDYTS2AZcUM1MbLa3g dUIAoJt9yvU8W4PLyAtpa4P6tAvBXaVy =kmGF -----END PGP SIGNATURE----- --=-=-=--