android-components / mozilla.components.support.ktx.android.graphics

Package mozilla.components.support.ktx.android.graphics

Functions

Name Summary
arePixelsAllTheSame fun <ERROR CLASS>.arePixelsAllTheSame(): Boolean
Returns true if all pixels have the same value, false otherwise.
toDataUri fun <ERROR CLASS>.toDataUri(): String
Transform bitmap into base64 encoded data uri (PNG).
withRoundedCorners fun <ERROR CLASS>.withRoundedCorners(cornerRadiusPx: Float): <ERROR CLASS>
Returns a new bitmap that is the receiver Bitmap with four rounded corners; the receiver is unmodified.