#[repr(C)]pub struct OhosImageSourceInfo {
pub pixelFormat: i32,
pub colorSpace: i32,
pub alphaType: i32,
pub density: i32,
pub size: OhosImageSize,
}Expand description
@brief Defines the image source information, which is obtained by calling {@link OH_ImageSource_GetImageInfo}.
@since 10 @version 4.0
Fields§
§pixelFormat: i32Pixel format of the image source. It is set in {@link OH_ImageSource_Create}.
colorSpace: i32Color space of the image source.
alphaType: i32Alpha type of the image source.
density: i32Image density of the image source. It is set in {@link OH_ImageSource_Create}.
size: OhosImageSizePixel width and height of the image source.
Trait Implementations§
Source§impl Clone for OhosImageSourceInfo
impl Clone for OhosImageSourceInfo
impl Copy for OhosImageSourceInfo
Auto Trait Implementations§
impl Forget for OhosImageSourceInfo
impl Freeze for OhosImageSourceInfo
impl Move for OhosImageSourceInfo
impl RefUnwindSafe for OhosImageSourceInfo
impl Send for OhosImageSourceInfo
impl Sync for OhosImageSourceInfo
impl Unpin for OhosImageSourceInfo
impl UnsafeUnpin for OhosImageSourceInfo
impl UnwindSafe for OhosImageSourceInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more