animator.skia.ImageInfo

class animator.skia.ImageInfo

Bases: pybind11_builtins.pybind11_object

Note

The Make() methods are also available as constructors.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: animator.skia.ImageInfo) -> None

  2. __init__(self: animator.skia.ImageInfo, width: int, height: int, ct: animator.skia.ColorType, at: animator.skia.AlphaType, cs: animator.skia.ColorSpace = None) -> None

  3. __init__(self: animator.skia.ImageInfo, dimensions: animator.skia.ISize, ct: animator.skia.ColorType, at: animator.skia.AlphaType, cs: animator.skia.ColorSpace = None) -> None

  4. __init__(self: animator.skia.ImageInfo, dimensions: animator.skia.ISize, colorInfo: animator.skia.ColorInfo) -> None

Methods

ByteSizeOverflowed(byteSize)

Make(*args, **kwargs)

Overloaded function.

MakeA8(*args, **kwargs)

Overloaded function.

MakeN32(width, height, at[, cs])

MakeN32Premul(*args, **kwargs)

Overloaded function.

MakeS32(width, height, at)

MakeUnknown(*args, **kwargs)

Overloaded function.

__init__(*args, **kwargs)

Overloaded function.

alphaType(self)

bounds(self)

bytesPerPixel(self)

colorInfo(self)

colorSpace(self)

colorType(self)

computeByteSize(self, rowBytes)

computeMinByteSize(self)

computeOffset(self, x, y, rowBytes)

dimensions(self)

gammaCloseToSRGB(self)

height(self)

isEmpty(self)

isOpaque(self)

makeAlphaType(self, newAlphaType)

makeColorSpace(self, cs)

makeColorType(self, newColorType)

makeDimensions(self, newSize)

makeWH(self, newWidth, newHeight)

minRowBytes(self)

minRowBytes64(self)

refColorSpace(self)

reset(self)

shiftPerPixel(self)

validRowBytes(self, rowBytes)

width(self)

static ByteSizeOverflowed(byteSize: int) bool
static Make(*args, **kwargs)

Overloaded function.

  1. Make(width: int, height: int, ct: animator.skia.ColorType, at: animator.skia.AlphaType, cs: animator.skia.ColorSpace = None) -> animator.skia.ImageInfo

  2. Make(dimensions: animator.skia.ISize, ct: animator.skia.ColorType, at: animator.skia.AlphaType, cs: animator.skia.ColorSpace = None) -> animator.skia.ImageInfo

  3. Make(dimensions: animator.skia.ISize, colorInfo: animator.skia.ColorInfo) -> animator.skia.ImageInfo

static MakeA8(*args, **kwargs)

Overloaded function.

  1. MakeA8(width: int, height: int) -> animator.skia.ImageInfo

  2. MakeA8(dimensions: animator.skia.ISize) -> animator.skia.ImageInfo

static MakeN32(width: int, height: int, at: animator.skia.AlphaType, cs: animator.skia.ColorSpace = None) animator.skia.ImageInfo
static MakeN32Premul(*args, **kwargs)

Overloaded function.

  1. MakeN32Premul(width: int, height: int, cs: animator.skia.ColorSpace = None) -> animator.skia.ImageInfo

  2. MakeN32Premul(dimensions: animator.skia.ISize, cs: animator.skia.ColorSpace = None) -> animator.skia.ImageInfo

static MakeS32(width: int, height: int, at: animator.skia.AlphaType) animator.skia.ImageInfo
static MakeUnknown(*args, **kwargs)

Overloaded function.

  1. MakeUnknown(width: int, height: int) -> animator.skia.ImageInfo

  2. MakeUnknown() -> animator.skia.ImageInfo

alphaType(self: animator.skia.ImageInfo) animator.skia.AlphaType
bounds(self: animator.skia.ImageInfo) animator.skia.IRect
bytesPerPixel(self: animator.skia.ImageInfo) int
colorInfo(self: animator.skia.ImageInfo) animator.skia.ColorInfo
colorSpace(self: animator.skia.ImageInfo) animator.skia.ColorSpace
colorType(self: animator.skia.ImageInfo) animator.skia.ColorType
computeByteSize(self: animator.skia.ImageInfo, rowBytes: int) int
computeMinByteSize(self: animator.skia.ImageInfo) int
computeOffset(self: animator.skia.ImageInfo, x: int, y: int, rowBytes: int) int
dimensions(self: animator.skia.ImageInfo) animator.skia.ISize
gammaCloseToSRGB(self: animator.skia.ImageInfo) bool
height(self: animator.skia.ImageInfo) int
isEmpty(self: animator.skia.ImageInfo) bool
isOpaque(self: animator.skia.ImageInfo) bool
makeAlphaType(self: animator.skia.ImageInfo, newAlphaType: animator.skia.AlphaType) animator.skia.ImageInfo
makeColorSpace(self: animator.skia.ImageInfo, cs: animator.skia.ColorSpace) animator.skia.ImageInfo
makeColorType(self: animator.skia.ImageInfo, newColorType: animator.skia.ColorType) animator.skia.ImageInfo
makeDimensions(self: animator.skia.ImageInfo, newSize: animator.skia.ISize) animator.skia.ImageInfo
makeWH(self: animator.skia.ImageInfo, newWidth: int, newHeight: int) animator.skia.ImageInfo
minRowBytes(self: animator.skia.ImageInfo) int
minRowBytes64(self: animator.skia.ImageInfo) int
refColorSpace(self: animator.skia.ImageInfo) animator.skia.ColorSpace
reset(self: animator.skia.ImageInfo) None
shiftPerPixel(self: animator.skia.ImageInfo) int
validRowBytes(self: animator.skia.ImageInfo, rowBytes: int) bool
width(self: animator.skia.ImageInfo) int