all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* images / alpha-blending
@ 2006-02-18 10:00 David Reitter
  2006-02-19  7:22 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 5+ messages in thread
From: David Reitter @ 2006-02-18 10:00 UTC (permalink / raw)


I am trying to use a few new icons for the tool-bar and after a bit  
of fruitless research, I have the impression that alpha-blending is  
not supported. I can only use bitmasks, even with image types such as  
PNG that have an alpha channel. Is that correct?

(I have only tried this with the Carbon port, but I understand that  
X11 currently doesn't support alpha-blending anyways.)

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

* Re: images / alpha-blending
  2006-02-18 10:00 images / alpha-blending David Reitter
@ 2006-02-19  7:22 ` YAMAMOTO Mitsuharu
  2006-02-19 22:47   ` Richard M. Stallman
  2006-02-21 15:44   ` David Reitter
  0 siblings, 2 replies; 5+ messages in thread
From: YAMAMOTO Mitsuharu @ 2006-02-19  7:22 UTC (permalink / raw)
  Cc: emacs-devel

>>>>> On Sat, 18 Feb 2006 10:00:33 +0000, David Reitter <david.reitter@gmail.com> said:

> I am trying to use a few new icons for the tool-bar and after a bit
> of fruitless research, I have the impression that alpha-blending is
> not supported. I can only use bitmasks, even with image types such
> as PNG that have an alpha channel. Is that correct?

It would work as expected only when :background is given explicitly.
Otherwise, transparent parts are merged with the frame background
color:

  http://lists.gnu.org/archive/html/emacs-devel/2004-04/msg00623.html

> (I have only tried this with the Carbon port, but I understand that
> X11 currently doesn't support alpha-blending anyways.)

I have some experimental code of alpha channel support for the Carbon
port using Quartz 2D, but I have the impression that full alpha
channel support is a post-release issue from the above post.  ("22.1"
didn't mean the next release there.)

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

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

* Re: images / alpha-blending
  2006-02-19  7:22 ` YAMAMOTO Mitsuharu
@ 2006-02-19 22:47   ` Richard M. Stallman
  2006-02-20 11:44     ` David Reitter
  2006-02-21 15:44   ` David Reitter
  1 sibling, 1 reply; 5+ messages in thread
From: Richard M. Stallman @ 2006-02-19 22:47 UTC (permalink / raw)
  Cc: david.reitter, emacs-devel

What is alpha-blending?  What does the feature do?

We don't want Emacs to support features that are limited to a non-free
system; that would betray the goal we are working for.  What would be
necessary to support alpha-blending in a system-independent fashion
(after the release of course)?

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

* Re: images / alpha-blending
  2006-02-19 22:47   ` Richard M. Stallman
@ 2006-02-20 11:44     ` David Reitter
  0 siblings, 0 replies; 5+ messages in thread
From: David Reitter @ 2006-02-20 11:44 UTC (permalink / raw)
  Cc: Emacs-Devel '

On 19 Feb 2006, at 22:47, Richard M. Stallman wrote:

> What is alpha-blending?  What does the feature do?
>
> We don't want Emacs to support features that are limited to a non-free
> system; that would betray the goal we are working for.

An "alpha layer" is a form of "graded transparency layer". With basic  
transparency, you define a bitmask where one bit corresponds to one  
pixel, indicating whether or not the background should be displayed  
in that pixel (rather than a pixel belonging to the actual image). An  
alpha layer assignes a value of higher resolution to each pixel. When  
the image is displayed, the background color for that pixel blends in  
with the image pixel. This produces smooth edges.

Supporting this is not merely a matter for the application (Emacs),  
but also for the graphics device and layers in between. So of course  
it wouldn't make sense to produce an alternative icon set if the  
images required something that isn't and won't be equally supported  
on the free platforms. Hence my question.

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

* Re: images / alpha-blending
  2006-02-19  7:22 ` YAMAMOTO Mitsuharu
  2006-02-19 22:47   ` Richard M. Stallman
@ 2006-02-21 15:44   ` David Reitter
  1 sibling, 0 replies; 5+ messages in thread
From: David Reitter @ 2006-02-21 15:44 UTC (permalink / raw)


On 19 Feb 2006, at 07:22, YAMAMOTO Mitsuharu wrote:
>  It would work as expected only when :background is given explicitly.
> Otherwise, transparent parts are merged with the frame background
> color:

Thanks, that's helpful information - I could make it work. Do other  
ports (in particular: X11, Windows) implement it like that as well?

Cheers
Dave

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

end of thread, other threads:[~2006-02-21 15:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-18 10:00 images / alpha-blending David Reitter
2006-02-19  7:22 ` YAMAMOTO Mitsuharu
2006-02-19 22:47   ` Richard M. Stallman
2006-02-20 11:44     ` David Reitter
2006-02-21 15:44   ` David Reitter

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.