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) |
ImglyJpeg(int imageWidth,
int imageHeight,
int quality,
java.io.OutputStream outStream) |
Modifier and Type | Method and Description |
---|---|
static java.math.BigDecimal |
allocationFactor() |
void |
compressBitmapChunk(android.graphics.Bitmap bitmap) |
void |
compressGlBitmapAllocation(android.support.v8.renderscript.Allocation in,
boolean compressAlphaChannelAsMonochrome) |
void |
writeFileEnd() |
public ImglyJpeg(int imageWidth, int imageHeight, int chunkHeight, int quality, @NonNull java.io.OutputStream outStream)
public ImglyJpeg(int imageWidth, int imageHeight, int quality, @NonNull 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 android.graphics.Bitmap bitmap) throws java.io.IOException
java.io.IOException
public void compressGlBitmapAllocation(@NonNull android.support.v8.renderscript.Allocation in, boolean compressAlphaChannelAsMonochrome) throws java.io.IOException
java.io.IOException
public void writeFileEnd() throws java.io.IOException
java.io.IOException