Struct skia_bindings::SkBitmap

source ·
#[repr(C)]
pub struct SkBitmap { pub fPixelRef: sk_sp<SkPixelRef>, pub fPixmap: SkPixmap, pub fMips: sk_sp<SkMipmap>, }

Fields§

§fPixelRef: sk_sp<SkPixelRef>§fPixmap: SkPixmap§fMips: sk_sp<SkMipmap>

Implementations§

source§

impl SkBitmap

source

pub unsafe fn swap(&mut self, other: *mut SkBitmap)

source

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

source

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

source

pub unsafe fn setAlphaType(&mut self, alphaType: SkAlphaType) -> bool

source

pub unsafe fn isImmutable(&self) -> bool

source

pub unsafe fn setImmutable(&mut self)

source

pub unsafe fn reset(&mut self)

source

pub unsafe fn getBounds(&self, bounds: *mut SkRect)

source

pub unsafe fn getBounds1(&self, bounds: *mut SkIRect)

source

pub unsafe fn setInfo( &mut self, imageInfo: *const SkImageInfo, rowBytes: usize ) -> bool

source

pub unsafe fn tryAllocPixelsFlags( &mut self, info: *const SkImageInfo, flags: u32 ) -> bool

source

pub unsafe fn allocPixelsFlags(&mut self, info: *const SkImageInfo, flags: u32)

source

pub unsafe fn tryAllocPixels( &mut self, info: *const SkImageInfo, rowBytes: usize ) -> bool

source

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

source

pub unsafe fn allocPixels1(&mut self, info: *const SkImageInfo)

source

pub unsafe fn tryAllocN32Pixels( &mut self, width: c_int, height: c_int, isOpaque: bool ) -> bool

source

pub unsafe fn allocN32Pixels( &mut self, width: c_int, height: c_int, isOpaque: bool )

source

pub unsafe fn installPixels( &mut self, info: *const SkImageInfo, pixels: *mut c_void, rowBytes: usize, releaseProc: Option<unsafe extern "C" fn(addr: *mut c_void, context: *mut c_void)>, context: *mut c_void ) -> bool

source

pub unsafe fn installPixels1(&mut self, pixmap: *const SkPixmap) -> bool

source

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

source

pub unsafe fn setPixels(&mut self, pixels: *mut c_void)

source

pub unsafe fn allocPixels2(&mut self)

source

pub unsafe fn tryAllocPixels1( &mut self, allocator: *mut SkBitmap_Allocator ) -> bool

source

pub unsafe fn allocPixels3(&mut self, allocator: *mut SkBitmap_Allocator)

source

pub unsafe fn pixelRefOrigin(&self) -> SkIPoint

source

pub unsafe fn setPixelRef( &mut self, pixelRef: sk_sp<SkPixelRef>, dx: c_int, dy: c_int )

source

pub unsafe fn getGenerationID(&self) -> u32

source

pub unsafe fn notifyPixelsChanged(&self)

source

pub unsafe fn eraseColor(&self, arg1: SkColor4f)

source

pub unsafe fn eraseColor1(&self, c: SkColor)

source

pub unsafe fn erase(&self, c: SkColor4f, area: *const SkIRect)

source

pub unsafe fn erase1(&self, c: SkColor, area: *const SkIRect)

source

pub unsafe fn getAddr(&self, x: c_int, y: c_int) -> *mut c_void

source

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

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 readPixels1( &self, dst: *const SkPixmap, srcX: c_int, srcY: c_int ) -> bool

source

pub unsafe fn writePixels( &mut self, src: *const SkPixmap, dstX: c_int, dstY: c_int ) -> bool

source

pub unsafe fn extractAlpha( &self, dst: *mut SkBitmap, paint: *const SkPaint, allocator: *mut SkBitmap_Allocator, offset: *mut SkIPoint ) -> bool

source

pub unsafe fn peekPixels(&self, pixmap: *mut SkPixmap) -> bool

source

pub unsafe fn makeShader( &self, tmx: SkTileMode, tmy: SkTileMode, arg1: *const SkSamplingOptions, localMatrix: *const SkMatrix ) -> sk_sp<SkShader>

source

pub unsafe fn makeShader1( &self, tmx: SkTileMode, tmy: SkTileMode, sampling: *const SkSamplingOptions, lm: *const SkMatrix ) -> sk_sp<SkShader>

source

pub unsafe fn makeShader2( &self, sampling: *const SkSamplingOptions, lm: *const SkMatrix ) -> sk_sp<SkShader>

source

pub unsafe fn makeShader3( &self, sampling: *const SkSamplingOptions, lm: *const SkMatrix ) -> sk_sp<SkShader>

source

pub unsafe fn asImage(&self) -> sk_sp<SkImage>

source

pub unsafe fn new() -> Self

source

pub unsafe fn new1(src: *const SkBitmap) -> Self

source

pub unsafe fn new2(src: *mut SkBitmap) -> Self

source

pub unsafe fn destruct(&mut self)

Trait Implementations§

source§

impl Debug for SkBitmap

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.