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

source

pub unsafe fn reset(&mut self)

source

pub unsafe fn reset1( &mut self, info: *const SkImageInfo, addr: *const c_void, rowBytes: usize )

source

pub unsafe fn setColorSpace(&mut self, colorSpace: sk_sp<SkColorSpace>)

source

pub unsafe fn reset2(&mut self, mask: *const SkMask) -> bool

source

pub unsafe fn extractSubset( &self, subset: *mut SkPixmap, area: *const SkIRect ) -> bool

source

pub unsafe fn colorSpace(&self) -> *mut SkColorSpace

source

pub unsafe fn refColorSpace(&self) -> sk_sp<SkColorSpace>

source

pub unsafe fn computeIsOpaque(&self) -> bool

source

pub unsafe fn getColor(&self, x: c_int, y: c_int) -> SkColor

source

pub unsafe fn getColor4f(&self, x: c_int, y: c_int) -> SkColor4f

source

pub unsafe fn getAlphaf(&self, x: c_int, y: c_int) -> f32

source

pub unsafe fn readPixels( &self, dstInfo: *const SkImageInfo, dstPixels: *mut c_void, dstRowBytes: usize, srcX: c_int, srcY: c_int ) -> bool

source

pub unsafe fn scalePixels( &self, dst: *const SkPixmap, arg1: *const SkSamplingOptions ) -> bool

source

pub unsafe fn erase(&self, color: SkColor, subset: *const SkIRect) -> bool

source

pub unsafe fn erase1( &self, color: *const SkColor4f, subset: *const SkIRect ) -> bool

Trait Implementations§

source§

impl Debug for SkPixmap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.