public class ImglyJpeg
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static RenderScript |
rs |
| Constructor and Description |
|---|
ImglyJpeg(int imageWidth,
int imageHeight,
int chunkHeight,
int quality,
java.io.OutputStream outStream) |
| Modifier and Type | Method and Description |
|---|---|
static java.math.BigDecimal |
allocationFactor() |
void |
compressBitmapChunk(android.graphics.Bitmap bitmap) |
void |
writeFileEnd() |
public ImglyJpeg(int imageWidth,
int imageHeight,
int chunkHeight,
int quality,
java.io.OutputStream outStream)
quality - quality of the image.0 to 100 and from bad image quality, high compression to good image quality low compressionoutStream - write streampublic static java.math.BigDecimal allocationFactor()
public void writeFileEnd()
throws java.io.IOException
java.io.IOExceptionpublic void compressBitmapChunk(@NonNull
android.graphics.Bitmap bitmap)
throws java.io.IOException
java.io.IOException