The destination object can be anything providing that we have an {@link ImageOutputStreamSpi} that recognizes it. @param destination where to write the internal {@link #image} as a PNG. @param compression algorithm. @param compressionRate percentage of compression. @param nativeAcc should we use native acceleration. @param paletted should we write the png as 8 bits? @return this {@link ImageWorker}. @throws IOException In case an error occurs during the search for an {@link ImageOutputStream} or during the eoncding process. @todo Current code doesn't check if the writer already accepts the provided destination. It wraps it in a {@link ImageOutputStream}inconditionnaly.
|
|