Struct skia_bindings::SkPixmap
source · #[repr(C)]pub struct SkPixmap {
pub fPixels: *const c_void,
pub fRowBytes: usize,
pub fInfo: SkImageInfo,
}
Fields§
§fPixels: *const c_void
§fRowBytes: usize
§fInfo: SkImageInfo
Implementations§
source§impl SkPixmap
impl SkPixmap
pub unsafe fn reset(&mut self)
pub unsafe fn reset1( &mut self, info: *const SkImageInfo, addr: *const c_void, rowBytes: usize )
pub unsafe fn setColorSpace(&mut self, colorSpace: sk_sp<SkColorSpace>)
pub unsafe fn reset2(&mut self, mask: *const SkMask) -> bool
pub unsafe fn extractSubset( &self, subset: *mut SkPixmap, area: *const SkIRect ) -> bool
pub unsafe fn colorSpace(&self) -> *mut SkColorSpace
pub unsafe fn refColorSpace(&self) -> sk_sp<SkColorSpace>
pub unsafe fn computeIsOpaque(&self) -> bool
pub unsafe fn getColor(&self, x: c_int, y: c_int) -> SkColor
pub unsafe fn getColor4f(&self, x: c_int, y: c_int) -> SkColor4f
pub unsafe fn getAlphaf(&self, x: c_int, y: c_int) -> f32
pub unsafe fn readPixels( &self, dstInfo: *const SkImageInfo, dstPixels: *mut c_void, dstRowBytes: usize, srcX: c_int, srcY: c_int ) -> bool
pub unsafe fn scalePixels( &self, dst: *const SkPixmap, arg1: *const SkSamplingOptions ) -> bool
pub unsafe fn erase(&self, color: SkColor, subset: *const SkIRect) -> bool
pub unsafe fn erase1( &self, color: *const SkColor4f, subset: *const SkIRect ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SkPixmap
impl !Send for SkPixmap
impl !Sync for SkPixmap
impl Unpin for SkPixmap
impl UnwindSafe for SkPixmap
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