Struct skia_bindings::SkImageInfo
source · #[repr(C)]pub struct SkImageInfo {
pub fColorInfo: SkColorInfo,
pub fDimensions: SkISize,
}
Fields§
§fColorInfo: SkColorInfo
§fDimensions: SkISize
Implementations§
source§impl SkImageInfo
impl SkImageInfo
pub unsafe fn Make( width: c_int, height: c_int, ct: SkColorType, at: SkAlphaType ) -> SkImageInfo
pub unsafe fn Make1( width: c_int, height: c_int, ct: SkColorType, at: SkAlphaType, cs: sk_sp<SkColorSpace> ) -> SkImageInfo
pub unsafe fn Make2( dimensions: SkISize, ct: SkColorType, at: SkAlphaType ) -> SkImageInfo
pub unsafe fn Make3( dimensions: SkISize, ct: SkColorType, at: SkAlphaType, cs: sk_sp<SkColorSpace> ) -> SkImageInfo
pub unsafe fn MakeN32( width: c_int, height: c_int, at: SkAlphaType ) -> SkImageInfo
pub unsafe fn MakeN321( width: c_int, height: c_int, at: SkAlphaType, cs: sk_sp<SkColorSpace> ) -> SkImageInfo
pub unsafe fn MakeS32( width: c_int, height: c_int, at: SkAlphaType ) -> SkImageInfo
pub unsafe fn MakeN32Premul(width: c_int, height: c_int) -> SkImageInfo
pub unsafe fn MakeN32Premul1( width: c_int, height: c_int, cs: sk_sp<SkColorSpace> ) -> SkImageInfo
pub unsafe fn MakeN32Premul2(dimensions: SkISize) -> SkImageInfo
pub unsafe fn MakeN32Premul3( dimensions: SkISize, cs: sk_sp<SkColorSpace> ) -> SkImageInfo
pub unsafe fn MakeA8(width: c_int, height: c_int) -> SkImageInfo
pub unsafe fn MakeA81(dimensions: SkISize) -> SkImageInfo
pub unsafe fn MakeUnknown(width: c_int, height: c_int) -> SkImageInfo
pub unsafe fn colorSpace(&self) -> *mut SkColorSpace
pub unsafe fn refColorSpace(&self) -> sk_sp<SkColorSpace>
pub unsafe fn makeColorSpace(&self, cs: sk_sp<SkColorSpace>) -> SkImageInfo
pub unsafe fn computeOffset(&self, x: c_int, y: c_int, rowBytes: usize) -> usize
pub unsafe fn computeByteSize(&self, rowBytes: usize) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SkImageInfo
impl !Send for SkImageInfo
impl !Sync for SkImageInfo
impl Unpin for SkImageInfo
impl UnwindSafe for SkImageInfo
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