BitmapCompat

Helper for accessing features in Bitmap.

Functions

Link copied to clipboard
@NonNull
open fun createScaledBitmap(@NonNull srcBm: @NonNull Bitmap, dstW: Int, dstH: Int, @Nullable srcRect: @Nullable Rect, scaleInLinearSpace: Boolean): @NonNull Bitmap
Return a scaled bitmap.
Link copied to clipboard
open fun getAllocationByteCount(@NonNull bitmap: @NonNull Bitmap): Int
Returns the size of the allocated memory used to store this bitmap's pixels.
Link copied to clipboard
open fun hasMipMap(@NonNull bitmap: @NonNull Bitmap): Boolean
Indicates whether the renderer responsible for drawing this bitmap should attempt to use mipmaps when this bitmap is drawn scaled down.
Link copied to clipboard
open fun setHasMipMap(@NonNull bitmap: @NonNull Bitmap, hasMipMap: Boolean)
Set a hint for the renderer responsible for drawing this bitmap indicating that it should attempt to use mipmaps when this bitmap is drawn scaled down.