[]Struct jni_android_sys::android::graphics::Bitmap

#[repr(transparent)]
pub struct Bitmap(_);

public final class Bitmap

Required feature: "android-graphics-Bitmap"

Methods

impl Bitmap

pub fn getDensity<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setDensity<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn reconfigure<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Bitmap_Config>>
) -> Result<(), Local<'env, Throwable>>
[src]

reconfigure

Required features: "android-graphics-Bitmap_Config"

pub fn setWidth<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setHeight<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setConfig<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bitmap_Config>>
) -> Result<(), Local<'env, Throwable>>
[src]

setConfig

Required features: "android-graphics-Bitmap_Config"

pub fn recycle<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn isRecycled<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn getGenerationId<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn copyPixelsToBuffer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Buffer>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyPixelsToBuffer

Required features: "java-nio-Buffer"

pub fn copyPixelsFromBuffer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Buffer>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyPixelsFromBuffer

Required features: "java-nio-Buffer"

pub fn copy<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bitmap_Config>>,
    arg1: bool
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

copy

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config"

pub fn createScaledBitmap<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Bitmap>>,
    arg1: i32,
    arg2: i32,
    arg3: bool
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createScaledBitmap

Required features: "android-graphics-Bitmap"

pub fn createBitmap_Bitmap<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap"

pub fn createBitmap_Bitmap_int_int_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Bitmap>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap"

pub fn createBitmap_Bitmap_int_int_int_int_Matrix_boolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Bitmap>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: impl Into<Option<&'env Matrix>>,
    arg6: bool
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Matrix"

pub fn createBitmap_int_int_Config<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Bitmap_Config>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config"

pub fn createBitmap_DisplayMetrics_int_int_Config<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DisplayMetrics>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env Bitmap_Config>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config", "android-util-DisplayMetrics"

pub fn createBitmap_int_int_Config_boolean<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Bitmap_Config>>,
    arg3: bool
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config"

pub fn createBitmap_int_int_Config_boolean_ColorSpace<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Bitmap_Config>>,
    arg3: bool,
    arg4: impl Into<Option<&'env ColorSpace>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config", "android-graphics-ColorSpace"

pub fn createBitmap_DisplayMetrics_int_int_Config_boolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DisplayMetrics>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env Bitmap_Config>>,
    arg4: bool
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config", "android-util-DisplayMetrics"

pub fn createBitmap_DisplayMetrics_int_int_Config_boolean_ColorSpace<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DisplayMetrics>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env Bitmap_Config>>,
    arg4: bool,
    arg5: impl Into<Option<&'env ColorSpace>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config", "android-graphics-ColorSpace", "android-util-DisplayMetrics"

pub fn createBitmap_int_array_int_int_int_int_Config<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env IntArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: impl Into<Option<&'env Bitmap_Config>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config"

pub fn createBitmap_DisplayMetrics_int_array_int_int_int_int_Config<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DisplayMetrics>>,
    arg1: impl Into<Option<&'env IntArray>>,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: impl Into<Option<&'env Bitmap_Config>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config", "android-util-DisplayMetrics"

pub fn createBitmap_int_array_int_int_Config<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env IntArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env Bitmap_Config>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config"

pub fn createBitmap_DisplayMetrics_int_array_int_int_Config<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DisplayMetrics>>,
    arg1: impl Into<Option<&'env IntArray>>,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env Bitmap_Config>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config", "android-util-DisplayMetrics"

pub fn createBitmap_Picture<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Picture>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Picture"

pub fn createBitmap_Picture_int_int_Config<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Picture>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env Bitmap_Config>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

createBitmap

Required features: "android-graphics-Bitmap", "android-graphics-Bitmap_Config", "android-graphics-Picture"

pub fn getNinePatchChunk<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn compress<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bitmap_CompressFormat>>,
    arg1: i32,
    arg2: impl Into<Option<&'env OutputStream>>
) -> Result<bool, Local<'env, Throwable>>
[src]

compress

Required features: "android-graphics-Bitmap_CompressFormat", "java-io-OutputStream"

pub fn isMutable<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isPremultiplied<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setPremultiplied<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getWidth<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getHeight<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getScaledWidth_Canvas<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Canvas>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getScaledWidth

Required features: "android-graphics-Canvas"

pub fn getScaledHeight_Canvas<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Canvas>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getScaledHeight

Required features: "android-graphics-Canvas"

pub fn getScaledWidth_DisplayMetrics<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getScaledWidth

Required features: "android-util-DisplayMetrics"

pub fn getScaledHeight_DisplayMetrics<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getScaledHeight

Required features: "android-util-DisplayMetrics"

pub fn getScaledWidth_int<'env>(
    &'env self,
    arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getScaledHeight_int<'env>(
    &'env self,
    arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getRowBytes<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getByteCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getAllocationByteCount<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getConfig<'env>(
    &'env self
) -> Result<Option<Local<'env, Bitmap_Config>>, Local<'env, Throwable>>
[src]

getConfig

Required features: "android-graphics-Bitmap_Config"

pub fn hasAlpha<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setHasAlpha<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn hasMipMap<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setHasMipMap<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getColorSpace<'env>(
    &'env self
) -> Result<Option<Local<'env, ColorSpace>>, Local<'env, Throwable>>
[src]

getColorSpace

Required features: "android-graphics-ColorSpace"

pub fn eraseColor<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getPixel<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getPixels<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setPixel<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setPixels<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn describeContents<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn writeToParcel<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Parcel>>,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

writeToParcel

Required features: "android-os-Parcel"

pub fn extractAlpha<'env>(
    &'env self
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

extractAlpha

Required features: "android-graphics-Bitmap"

pub fn extractAlpha_Paint_int_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint>>,
    arg1: impl Into<Option<&'env IntArray>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

extractAlpha

Required features: "android-graphics-Bitmap", "android-graphics-Paint"

pub fn sameAs<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bitmap>>
) -> Result<bool, Local<'env, Throwable>>
[src]

sameAs

Required features: "android-graphics-Bitmap"

pub fn prepareToDraw<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const DENSITY_NONE: i32[src]

public static final DENSITY_NONE

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for Bitmap

impl AsRef<Parcelable> for Bitmap

impl AsValidJObjectAndEnv for Bitmap

impl Deref for Bitmap

type Target = Object

The resulting type after dereferencing.

impl JniType for Bitmap

Auto Trait Implementations

impl RefUnwindSafe for Bitmap

impl !Send for Bitmap

impl !Sync for Bitmap

impl Unpin for Bitmap

impl UnwindSafe for Bitmap

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.