[][src]Struct skia_bindings::SkImageInfo

#[repr(C)]
pub struct SkImageInfo {
    pub fColorSpace: sk_sp<SkColorSpace>,
    pub fDimensions: SkISize,
    pub fColorType: SkColorType,
    pub fAlphaType: SkAlphaType,
}

Fields

fColorSpace: sk_sp<SkColorSpace>fDimensions: SkISizefColorType: SkColorTypefAlphaType: SkAlphaType

Methods

impl SkImageInfo[src]

pub unsafe fn Make(
    width: c_int,
    height: c_int,
    ct: SkColorType,
    at: SkAlphaType,
    cs: sk_sp<SkColorSpace>
) -> SkImageInfo
[src]

pub unsafe fn MakeN32(
    width: c_int,
    height: c_int,
    at: SkAlphaType,
    cs: sk_sp<SkColorSpace>
) -> SkImageInfo
[src]

pub unsafe fn MakeS32(
    width: c_int,
    height: c_int,
    at: SkAlphaType
) -> SkImageInfo
[src]

pub unsafe fn MakeN32Premul(
    width: c_int,
    height: c_int,
    cs: sk_sp<SkColorSpace>
) -> SkImageInfo
[src]

pub unsafe fn MakeN32Premul1(size: *const SkISize) -> SkImageInfo[src]

pub unsafe fn MakeA8(width: c_int, height: c_int) -> SkImageInfo[src]

pub unsafe fn MakeUnknown(width: c_int, height: c_int) -> SkImageInfo[src]

pub unsafe fn MakeUnknown1() -> SkImageInfo[src]

pub unsafe fn width(&self) -> c_int[src]

pub unsafe fn height(&self) -> c_int[src]

pub unsafe fn colorType(&self) -> SkColorType[src]

pub unsafe fn alphaType(&self) -> SkAlphaType[src]

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

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

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

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

pub unsafe fn dimensions(&self) -> SkISize[src]

pub unsafe fn bounds(&self) -> SkIRect[src]

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

pub unsafe fn makeWH(&self, newWidth: c_int, newHeight: c_int) -> SkImageInfo[src]

pub unsafe fn makeAlphaType(&self, newAlphaType: SkAlphaType) -> SkImageInfo[src]

pub unsafe fn makeColorType(&self, newColorType: SkColorType) -> SkImageInfo[src]

pub unsafe fn makeColorSpace(&self, cs: sk_sp<SkColorSpace>) -> SkImageInfo[src]

pub unsafe fn bytesPerPixel(&self) -> c_int[src]

pub unsafe fn shiftPerPixel(&self) -> c_int[src]

pub unsafe fn minRowBytes64(&self) -> u64[src]

pub unsafe fn minRowBytes(&self) -> usize[src]

pub unsafe fn computeOffset(&self, x: c_int, y: c_int, rowBytes: usize) -> usize[src]

pub unsafe fn computeByteSize(&self, rowBytes: usize) -> usize[src]

pub unsafe fn computeMinByteSize(&self) -> usize[src]

pub unsafe fn ByteSizeOverflowed(byteSize: usize) -> bool[src]

pub unsafe fn validRowBytes(&self, rowBytes: usize) -> bool[src]

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

pub unsafe fn new() -> Self[src]

Trait Implementations

impl Debug for SkImageInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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