all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* PNG image files with alpha channel
@ 2008-05-08  4:46 Miles Bader
  2008-05-08 11:48 ` Chong Yidong
  0 siblings, 1 reply; 13+ messages in thread
From: Miles Bader @ 2008-05-08  4:46 UTC (permalink / raw)
  To: emacs-devel

Is Emacs supposed to properly handle an alpha channel in a PNG file?

I vaguely recall that it used to do something halfway reasonable (even
if just merging in the default bg color), but now it seem to simply
ignore an alpha channel.

E.g., using default settings, with a white background, do:

   (insert-image (create-image "image-with-alpha.png"))

[The create-image :background parameter seems to have no effect either.]


If you don't have an alpha-channel-bearing image, try this:

   http://download.savannah.gnu.org/releases/emacs/icons/emacs5-256.png

The "background" around the sphere has an alpha channel that's mostly zero.

Thanks,

-Miles

-- 
Politeness, n. The most acceptable hypocrisy.




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-05-09  2:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08  4:46 PNG image files with alpha channel Miles Bader
2008-05-08 11:48 ` Chong Yidong
2008-05-08 12:05   ` Jason Rumney
2008-05-08 15:02     ` Miles Bader
2008-05-08 15:18       ` Jason Rumney
2008-05-08 15:39         ` Miles Bader
2008-05-08 15:51           ` Jason Rumney
2008-05-08 18:19           ` Chong Yidong
2008-05-09  1:00           ` Chong Yidong
2008-05-09  1:10             ` Miles Bader
2008-05-09  2:35           ` Chong Yidong
2008-05-08 23:47         ` James Cloos
2008-05-09  0:43           ` Miles Bader

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.