public class ImglyJpeg
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static android.support.v8.renderscript.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(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 compressBitmapChunk(@NonNull Bitmap bitmap) throws java.io.IOException
java.io.IOException
public void writeFileEnd() throws java.io.IOException
java.io.IOException