Package ar.com.hjg.pngj.test

Some examples, tests and development-deployment utilities.

See:
          Description

Interface Summary
NeuQuant.PixelGetter  
 

Class Summary
CreateHuge Creates a huge image This is mainly for profiling
NeuQuant Modified for PngReader - no special colours - sequential read
SampleConvertPalette Example: convert a RGB8/RGBA8 image to palette using Kohonen quantizer Supports Alpha Does not support dithering yet
SampleCreateOrangeGradient  
SampleCreateStripes grayscale image - distorted diagonal stripes
SampleDecreaseRed Example: decreases the red channel by half, increase the green by 20.
SampleImgDiff Utility (and example) to verify that two images are identical.
SampleMirrorImage Mirrors an image, along the rows.
SamplePngReencode reencodes a png image with a given filter and compression level
SampleRemoveGama Remove GAMA chunk, if present
SampleShowChunks prints all chunks (remember that IDAT is shown as only one pseudo zero-length chunk)
ShowFilterInfo  
TestCRC  
TestDeflate  
TestDeflater  
TestFilters reencodes a png image with a given filter and compression level
TestPngSuite To test all images in PNG test suite (except interlaced) doing a horizontal mirror on all them Instructions: Original images from PNG test suite is supposed to be in local dir resources/testsuite1/ (images supposed to fail, because are erroneous or because are interlaced, must start with 'x') Output dir is hardcoded in static "outdir" field - it should be empty After running main, no error should be thrown Errors: 0/141 Result images are mirrored, with a 'z' appended to their names, and the originals are laso copied.
TestSpeed Creates a huge image This is mainly for profiling
TestZlib  
 

Package ar.com.hjg.pngj.test Description

Some examples, tests and development-deployment utilities.

Classes Sample* are examples.

This is not included in the main jar.