Android圖片壓縮(質量壓縮和尺寸壓縮 File, Stream和Bitmap)
阿新 • • 發佈:2019-02-08
/** * Returns the minimum number of bytes that can be used to store this bitmap's pixels. * * <p>As of {@link android.os.Build.VERSION_CODES#KITKAT}, the result of this method can * no longer be used to determine memory usage of a bitmap. See {@link * #getAllocationByteCount()}.</p> */ public final int getByteCount(); /** * Returns the size of the allocated memory used to store this bitmap's pixels. * * <p>This can be larger than the result of {@link #getByteCount()} if a bitmap is reused to * decode other bitmaps of smaller size, or by manual reconfiguration. * ... If a bitmap is not modified in this way, this value will be * the same as that returned by {@link #getByteCount()}.</p> * * <p>This value will not change over the lifetime of a Bitmap.</p> */ public final int getAllocationByteCount()