Hi Thomas,
Now "Squiggle" (aka SVGBrowser) can export SVG as the indexed PNG.
Based on:
apps/svgbrowser/JPEGOptionPanel.java
I added:
apps/svgbrowser/PNGOptionPanel.java
which is the JOptionDialog with the JCheckBox.
To pop up it, I slightly modified:
apps/svgbrowser/JSVGViewerFrame.jav
Hi Thomas,
> > By the way, I think it's time for PNGTranscoder to use:
> >IndexImage.getIndexedImage()
> > to convert the SVG to the indexed PNG.
>
> Done, current CVS rasterizer has '-indexed' which will write a
> 256 color PNG. For your test image it is very comparable
> to GIMP's output.
Hi Thomas,
On May16, 2002 08:40 -0400, Thomas E Deweese wrote:
> > "JI" == Jun Inamori <[EMAIL PROTECTED]> writes:
>
> JI> Hi Thomas,
> >> Correct GIMP creates palette that adapts to the contents of the
> >> image. There are many ways of doing this, I don't know what method
> >> GIMP uses b
Hi Thomas,
> Correct GIMP creates palette that adapts to the contents
> of the image. There are many ways of doing this, I don't
> know what method GIMP uses but it is probably a pretty
> good one, the one I referenced earlier is also pretty good
> and very standard.
While I don't understand wh
> "JI" == Jun Inamori <[EMAIL PROTECTED]> writes:
JI> Hi Thomas,
>> Correct GIMP creates palette that adapts to the contents of the
>> image. There are many ways of doing this, I don't know what method
>> GIMP uses but it is probably a pretty good one, the one I
>> referenced earlier is also
> "JI" == Jun Inamori <[EMAIL PROTECTED]> writes:
JI> Dear Thomas,
>> A good color palette will put less pressure on the dithering
>> function, so given a good palette you will get a significantly
>> better image given the same dithering function. The exact
>> difference depends on the image
Dear Thomas,
> A good color palette will put less pressure on the
> dithering function, so given a good palette you will
> get a significantly better image given the same
> dithering function. The exact difference depends
> on the image.
Thank you for your kind reply.
In these days, I was think
> "JI" == Jun Inamori <[EMAIL PROTECTED]> writes:
JI> Hi Thomas,
>> I'll see if I can put togeather at least the adaptive
>> pallete part. I don't know how long it will take me
>> to get around to this, so if you or some other
>> enterprising programmer has a copy of Graphics Gems they
>> ca
Hi Thomas,
> I'll see if I can put togeather at least the adaptive
> pallete part. I don't know how long it will take me
> to get around to this, so if you or some other
> enterprising programmer has a copy of Graphics Gems they
> can probably beat me to it.
The big problem is...
The sources in
ge.resources.Messages;
import org.apache.batik.ext.awt.image.codec.PNGEncodeParam;
import org.apache.batik.ext.awt.image.codec.PNGImageEncoder;
// By Jun Inamori ([EMAIL PROTECTED])
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
/**
* This class is an ImageTranscoder that produ
[EMAIL PROTECTED])
import java.awt.image.IndexColorModel;
/**
* This class is an ImageTranscoder that produces a PNG image.
*
* @author mailto:[EMAIL PROTECTED]";>Thierry Kormann
* @version $Id: PNGTranscoder.java,v 1.9 2001/10/29 17:38:27 tkormann Exp $
*/
public class PNGT
Hi,
Last week, I posted the new implementation of Transcoder, IndexedPNGTranscoder.
But, I got no answer yet.
Does anyone try it?
By the way, I have a question.
Is ImageTranscode "Thread Safe"?
Thank you for your help.
Happy Java programming!
Jun Inamori
OOP-Res
12 matches
Mail list logo