[][src]Struct skia_bindings::SkPixmap

#[repr(C)]
pub struct SkPixmap {
    pub fPixels: *const c_void,
    pub fRowBytes: usize,
    pub fInfo: SkImageInfo,
}

Fields

fPixels: *const c_voidfRowBytes: usizefInfo: SkImageInfo

Methods

impl SkPixmap[src]

pub unsafe fn reset(&mut self)[src]

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

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

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

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

pub unsafe fn computeIsOpaque(&self) -> bool[src]

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

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

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

pub unsafe fn scalePixels(
    &self,
    dst: *const SkPixmap,
    filterQuality: SkFilterQuality
) -> bool
[src]

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

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

Auto Trait Implementations

impl !Send for SkPixmap

impl Unpin for SkPixmap

impl !Sync for SkPixmap

impl UnwindSafe for SkPixmap

impl !RefUnwindSafe for SkPixmap

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]