* Elisp: Generating Image Files
@ 2017-05-20 5:20 Christopher Howard
2017-05-20 14:37 ` Emanuel Berg
2017-05-26 9:52 ` Thien-Thi Nguyen
0 siblings, 2 replies; 9+ messages in thread
From: Christopher Howard @ 2017-05-20 5:20 UTC (permalink / raw)
To: Help Gnu Emacs
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?
--
https://qlfiles.net
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Elisp: Generating Image Files
2017-05-20 5:20 Elisp: Generating Image Files Christopher Howard
@ 2017-05-20 14:37 ` Emanuel Berg
2017-05-20 15:35 ` Christopher Howard
2017-05-26 9:52 ` Thien-Thi Nguyen
1 sibling, 1 reply; 9+ messages in thread
From: Emanuel Berg @ 2017-05-20 14:37 UTC (permalink / raw)
To: help-gnu-emacs
Christopher Howard wrote:
> 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?
There is a chapter in the Elisp manual which
might help you, namely "Defining Images":
http://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Images.html
Also check out the parent section, "Images"!
--
underground experts united
http://user.it.uu.se/~embe8573
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Elisp: Generating Image Files
2017-05-20 5:20 Elisp: Generating Image Files Christopher Howard
2017-05-20 14:37 ` Emanuel Berg
@ 2017-05-26 9:52 ` Thien-Thi Nguyen
2017-05-26 12:42 ` Emanuel Berg
1 sibling, 1 reply; 9+ messages in thread
From: Thien-Thi Nguyen @ 2017-05-26 9:52 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
() Christopher Howard <christopher.howard@qlfiles.net>
() 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Elisp: Generating Image Files
2017-05-26 9:52 ` Thien-Thi Nguyen
@ 2017-05-26 12:42 ` Emanuel Berg
2017-05-26 12:50 ` tomas
0 siblings, 1 reply; 9+ messages in thread
From: Emanuel Berg @ 2017-05-26 12:42 UTC (permalink / raw)
To: help-gnu-emacs
Thien-Thi Nguyen wrote:
> Code Enhancement Opportunity
I always wondered what CEO actually meant - and
this is surely a surprise, as those guys never
seemed to know anything about code!
--
underground experts united
http://user.it.uu.se/~embe8573
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Elisp: Generating Image Files
2017-05-26 12:42 ` Emanuel Berg
@ 2017-05-26 12:50 ` tomas
2017-05-26 20:46 ` Emanuel Berg
0 siblings, 1 reply; 9+ messages in thread
From: tomas @ 2017-05-26 12:50 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, May 26, 2017 at 02:42:25PM +0200, Emanuel Berg wrote:
> Thien-Thi Nguyen wrote:
>
> > Code Enhancement Opportunity
>
> I always wondered what CEO actually meant - and
> this is surely a surprise, as those guys never
> seemed to know anything about code!
When there's nothing, the enhancement opportunities are maximal
(assuming a non-negative domain).
Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlkoJHwACgkQBcgs9XrR2kZ9GwCcDjB4wh6JAUOqqu7y3+bqsoyn
6k0An0EEkYjqxSpMs2rF7kd3Pcxl5WJs
=PpFP
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Elisp: Generating Image Files
2017-05-26 12:50 ` tomas
@ 2017-05-26 20:46 ` Emanuel Berg
0 siblings, 0 replies; 9+ messages in thread
From: Emanuel Berg @ 2017-05-26 20:46 UTC (permalink / raw)
To: help-gnu-emacs
>>> Code Enhancement Opportunity
>>
>> I always wondered what CEO actually meant -
>> and this is surely a surprise, as those guys
>> never seemed to know anything about code!
>
> When there's nothing, the enhancement
> opportunities are maximal (assuming
> a non-negative domain).
So where does that leave us after X years'
doing this? Answer: what is left is either too
difficult, or it is too big an effort to do.
After climbing Annapurna, some people feel
enriched their entire life. While others feel
cheated of their grail, knowing no coming
adventure or conquest will ever match it...
*sob*
--
underground experts united
http://user.it.uu.se/~embe8573
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2017-05-26 20:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-20 5:20 Elisp: Generating Image Files Christopher Howard
2017-05-20 14:37 ` Emanuel Berg
2017-05-20 15:35 ` Christopher Howard
2017-05-20 20:33 ` Yuri Khan
[not found] ` <9b5d5f09-abcc-dc92-00bc-fb498a1f69c1@qlfiles.net>
2017-05-22 17:50 ` Christopher Howard
2017-05-26 9:52 ` Thien-Thi Nguyen
2017-05-26 12:42 ` Emanuel Berg
2017-05-26 12:50 ` tomas
2017-05-26 20:46 ` Emanuel Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).