Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3987
| From | "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Anti-aliasing in imag |
| Message-ID | <48a3e91c$0$2232$ec3e2dad@news.usenetmonster.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <48a3826d$0$2239$ec3e2dad@news.usenetmonster.com><48a3ad42$0$4 |
| Date | 2011-04-27 15:48 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui,comp.l
On Wed, 13 Aug 2008 20:57:55 -0700, Knute Johnson wrote:
> I just answered this post in comp.lang.gui and now I see the back and
> forth. If all you want is an anti-aliased mask use the code below.
> Don't mess with your image, it's just too much work. If you want a
> fancier matte around the image see the other post.
>
> import java.awt.*;
> import java.awt.event.*;
[Snip]
Thanks. I can create the alpha mask. I understand how to do that. The
problem I'm having is that I have an image with some alpha in it and now
I want to apply the mask to the image. The idea is to get an image that
is circular, where everything outside the circle is blank, and where the
edges of the image are anti-aliased so when it is placed on top of a
background, it looks like a neat circle without jagged edges.
I'd like to be able to do this without going through the image pixel by
pixel, but that might be the best way to accomplish it, I guess.
--
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
http://www.electricsenator.net
A computer lets you make more mistakes faster than any invention in
human history with the possible exceptions of handguns and tequila.
-- Mitch Ratliffe, Technology Review, April, 1992
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Anti-aliasing in image cl "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Peter Duniho" <peter.duniho@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Peter Duniho" <peter.duniho@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Peter Duniho" <peter.duniho@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "Peter Duniho" <peter.duniho@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
Re: Anti-aliasing in imag "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
csiph-web