Package cool.scx.common.util.image
Class ProgressiveJPEGBuilder
java.lang.Object
cool.scx.common.util.image.ProgressiveJPEGBuilder
- All Implemented Interfaces:
OutputStreamSource
将图片转换为 渐进式 JPEG
-
Constructor Summary
ConstructorsConstructorDescriptionProgressiveJPEGBuilder(byte[] bytes) ProgressiveJPEGBuilder(InputStream inputStream) ProgressiveJPEGBuilder(Path path) ProgressiveJPEGBuilder(Supplier<byte[]> bytesSupplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageWritergetImageWriter(String formatName) void写入到指定输出流Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.common.io_stream_source.OutputStreamSource
toBytes, toFile
-
Constructor Details
-
ProgressiveJPEGBuilder
- Throws:
IOException
-
ProgressiveJPEGBuilder
- Throws:
IOException
-
ProgressiveJPEGBuilder
- Throws:
IOException
-
ProgressiveJPEGBuilder
- Throws:
IOException
-
ProgressiveJPEGBuilder
- Throws:
IOException
-
-
Method Details
-
getImageWriter
-
writeToOutputStream
Description copied from interface:OutputStreamSource写入到指定输出流- Specified by:
writeToOutputStreamin interfaceOutputStreamSource- Parameters:
out- 输出流- Throws:
IOException- e
-