pub struct AndroidBitmap { /* private fields */ }
Available on crate feature bitmap only.
Expand description

An immediate wrapper over android.graphics.Bitmap

Implementations

Create an AndroidBitmap wrapper from JNI pointers

Safety

This function should be called with a healthy JVM pointer and with a non-null android.graphics.Bitmap, which must be kept alive on the Java/Kotlin side.

Available on crate feature api-level-30 only.

Retrieve the native object associated with a HARDWARE AndroidBitmap.

Client must not modify it while an AndroidBitmap is wrapping it.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.