[]Struct jni_android_sys::android::graphics::BitmapFactory

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

public class BitmapFactory

Required feature: "android-graphics-BitmapFactory"

Methods

impl BitmapFactory

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, BitmapFactory>, Local<'env, Throwable>>
[src]

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

decodeFile

Required features: "android-graphics-Bitmap", "android-graphics-BitmapFactory_Options", "java-lang-String"

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

decodeFile

Required features: "android-graphics-Bitmap", "java-lang-String"

pub fn decodeResourceStream<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Resources>>,
    arg1: impl Into<Option<&'env TypedValue>>,
    arg2: impl Into<Option<&'env InputStream>>,
    arg3: impl Into<Option<&'env Rect>>,
    arg4: impl Into<Option<&'env BitmapFactory_Options>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

decodeResourceStream

Required features: "android-content-res-Resources", "android-graphics-Bitmap", "android-graphics-BitmapFactory_Options", "android-graphics-Rect", "android-util-TypedValue", "java-io-InputStream"

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

decodeResource

Required features: "android-content-res-Resources", "android-graphics-Bitmap", "android-graphics-BitmapFactory_Options"

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

decodeResource

Required features: "android-content-res-Resources", "android-graphics-Bitmap"

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

decodeByteArray

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

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

decodeByteArray

Required features: "android-graphics-Bitmap"

pub fn decodeStream_InputStream_Rect_Options<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env InputStream>>,
    arg1: impl Into<Option<&'env Rect>>,
    arg2: impl Into<Option<&'env BitmapFactory_Options>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

decodeStream

Required features: "android-graphics-Bitmap", "android-graphics-BitmapFactory_Options", "android-graphics-Rect", "java-io-InputStream"

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

decodeStream

Required features: "android-graphics-Bitmap", "java-io-InputStream"

pub fn decodeFileDescriptor_FileDescriptor_Rect_Options<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env FileDescriptor>>,
    arg1: impl Into<Option<&'env Rect>>,
    arg2: impl Into<Option<&'env BitmapFactory_Options>>
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

decodeFileDescriptor

Required features: "android-graphics-Bitmap", "android-graphics-BitmapFactory_Options", "android-graphics-Rect", "java-io-FileDescriptor"

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

decodeFileDescriptor

Required features: "android-graphics-Bitmap", "java-io-FileDescriptor"

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 BitmapFactory

impl AsValidJObjectAndEnv for BitmapFactory

impl Deref for BitmapFactory

type Target = Object

The resulting type after dereferencing.

impl JniType for BitmapFactory

Auto Trait Implementations

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.