#[repr(C)]pub struct OhosImageRegion {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
@brief Defines the region of the image source to decode. It is used in {@link OhosImageDecodingOps}, {@link OH_ImageSource_CreatePixelMap}, and {@link OH_ImageSource_CreatePixelMapList}.
@syscap SystemCapability.Multimedia.Image @since 10 @version 4.0
Fields§
§x: i32X coordinate of the start point, in pixels.
y: i32Y coordinate of the start point, in pixels.
width: i32Width of the region, in pixels.
height: i32Height of the region, in pixels.
Trait Implementations§
Source§impl Clone for OhosImageRegion
impl Clone for OhosImageRegion
Source§fn clone(&self) -> OhosImageRegion
fn clone(&self) -> OhosImageRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OhosImageRegion
Auto Trait Implementations§
impl Freeze for OhosImageRegion
impl RefUnwindSafe for OhosImageRegion
impl Send for OhosImageRegion
impl Sync for OhosImageRegion
impl Unpin for OhosImageRegion
impl UnsafeUnpin for OhosImageRegion
impl UnwindSafe for OhosImageRegion
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