xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53408] [PATCH] two new image loaders for PNG
Date Wed, 13 Jun 2012 13:30:29 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53408

--- Comment #3 from Glenn Adams <gadams@apache.org> ---
(In reply to comment #0)
> Created attachment 28927 [details]
> the patch
> 
> This patch includes two new PNG image loaders, one that uses the internal
> XGC PNG codec, and is very much equivalent to to the ImageIO image loader,
> and another that does not do the decoding of the PNG IDAT chunk and instead
> accepts the "raw" chunk. The image loaders are named, respectively,
> ImageLoaderPNG, and ImageLoaderRawPNG. For now these image loaders have a
> default penalty of 1000 so that the default image loader is still
> ImageLoaderImageIO.
> 
> The ImageLoaderRawPNG has still some limitations on the type of PNG images
> that can handle. It only handles images with 8 bits per channel and without
> interlacing. Nevertheless, this image loader is particularly useful for
> large images encoded with the Paeth filter since it does not do the decoding
> (inverting the Paeth filter is very expensive). So besides being faster it
> also produces smaller output files.

This introduces two deprecated use warnings when compiling. Could you fix?

compile-java:
    [mkdir] Created dir: /users/glenn/Work/xgc/build/classes
    [javac] Compiling 290 source files to /users/glenn/Work/xgc/build/classes
    [javac]
/users/glenn/Work/xgc/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java:279:
warning: [deprecation]
renderBitmapImage(java.awt.image.RenderedImage,float,float,float,float,org.apac\
he.xmlgraphics.ps.PSGenerator) in org.apache.xmlgraphics.ps.PSImageUtils has
been deprecated
    [javac]             PSImageUtils.renderBitmapImage(buf,
    [javac]                         ^
    [javac]
/users/glenn/Work/xgc/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java:650:
warning: [deprecation]
renderBitmapImage(java.awt.image.RenderedImage,float,float,float,float,org.apac\
he.xmlgraphics.ps.PSGenerator) in org.apache.xmlgraphics.ps.PSImageUtils has
been deprecated
    [javac]             PSImageUtils.renderBitmapImage(img,
    [javac]                         ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 warnings

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message