help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to display an image contained in a file?


From: Marcin Borkowski
Subject: How to display an image contained in a file?
Date: Tue, 01 Mar 2016 19:38:44 +0100
User-agent: mu4e 0.9.13; emacs 25.1.50.4

Hi all,

I have an image in the file, say "~/image.png".  I want to display it in
an interactive function - say, the user says M-x display-my-image, and
I want a buffer containing the image to pop up.  What do I do?  Of
course, (find-file "~/image.png") works, but it's probably not what
I should do in an Elisp program, right?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]