Struct skia_bindings::SkImage

source ·
#[repr(C)]
pub struct SkImage { pub _base: SkRefCnt, pub fInfo: SkImageInfo, pub fUniqueID: u32, }

Fields§

§_base: SkRefCnt§fInfo: SkImageInfo§fUniqueID: u32

Implementations§

source§

impl SkImage

source

pub unsafe fn alphaType(&self) -> SkAlphaType

source

pub unsafe fn colorType(&self) -> SkColorType

source

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

source

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

source

pub unsafe fn isAlphaOnly(&self) -> 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 makeRawShader( &self, tmx: SkTileMode, tmy: SkTileMode, arg1: *const SkSamplingOptions, localMatrix: *const SkMatrix ) -> sk_sp<SkShader>

source

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

source

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

source

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

source

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

source

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

source

pub unsafe fn readPixels1( &self, context: *mut GrDirectContext, dst: *const SkPixmap, srcX: c_int, srcY: c_int, cachingHint: SkImage_CachingHint ) -> bool

source

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

source

pub unsafe fn readPixels3( &self, dst: *const SkPixmap, srcX: c_int, srcY: c_int, cachingHint: SkImage_CachingHint ) -> bool

source

pub unsafe fn asyncRescaleAndReadPixels( &self, info: *const SkImageInfo, srcRect: *const SkIRect, rescaleGamma: SkImage_RescaleGamma, rescaleMode: SkImage_RescaleMode, callback: SkImage_ReadPixelsCallback, context: SkImage_ReadPixelsContext )

source

pub unsafe fn asyncRescaleAndReadPixelsYUV420( &self, yuvColorSpace: SkYUVColorSpace, dstColorSpace: sk_sp<SkColorSpace>, srcRect: *const SkIRect, dstSize: *const SkISize, rescaleGamma: SkImage_RescaleGamma, rescaleMode: SkImage_RescaleMode, callback: SkImage_ReadPixelsCallback, context: SkImage_ReadPixelsContext )

source

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

source

pub unsafe fn refEncodedData(&self) -> sk_sp<SkData>

source

pub unsafe fn hasMipmaps(&self) -> bool

source

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

source

pub unsafe fn makeNonTextureImage( &self, arg1: *mut GrDirectContext ) -> sk_sp<SkImage>

source

pub unsafe fn makeRasterImage( &self, arg1: *mut GrDirectContext, cachingHint: SkImage_CachingHint ) -> sk_sp<SkImage>

source

pub unsafe fn asLegacyBitmap( &self, bitmap: *mut SkBitmap, legacyBitmapMode: SkImage_LegacyBitmapMode ) -> bool

source

pub unsafe fn makeColorSpace( &self, target: sk_sp<SkColorSpace>, direct: *mut GrDirectContext ) -> sk_sp<SkImage>

source

pub unsafe fn makeColorTypeAndColorSpace( &self, targetColorType: SkColorType, targetColorSpace: sk_sp<SkColorSpace>, direct: *mut GrDirectContext ) -> sk_sp<SkImage>

source

pub unsafe fn reinterpretColorSpace( &self, newColorSpace: sk_sp<SkColorSpace> ) -> sk_sp<SkImage>

Trait Implementations§

source§

impl Debug for SkImage

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.