Skip to content

fontgate.fgBitmap · declarations 001

Back to fontgate.fgBitmap

asDict

asDict(*args: Any, **kwargs: Any) -> Any

represent object as dictionary

asTuple

asTuple(*args: Any, **kwargs: Any) -> Any

represent object as tuple

bpp instance-attribute

bpp: Any

bits per pixel

bytes instance-attribute

bytes: Any

bytes per row

clear

clear(*args: Any, **kwargs: Any) -> Any

clear all data

clone

clone(source: fgBitmap) -> Any

clone(fgBitmap source) - make clone of source bitmap

copy

copy(*args: Any, **kwargs: Any) -> Any

copy(fgBitmap source[, x, y, w, h]) - copy whole source bitmap or part of it with size (w, h) from pos (x, y)

copyData

copyData(*args: Any, **kwargs: Any) -> Any

copy(bytesarray) - assign new bitmap data

create

create(*args: Any, **kwargs: Any) -> Any

create(') - allocate new bitmap data

data instance-attribute

data: Any

bitmap data

downsample

downsample(arg0: fgBitmap, oversampling: int) -> Any

downsample(fgBitmap, int oversampling)

empty

empty() -> bool

bool empty() - return true if no data assigned or bitmap size is 0

emptyRow

emptyRow(y: Any, x0: Any, x1: Any) -> Any

emptyRow(y, x0, x1) - return true if part of row y from x0 till x1 has no non-zero pixels

fill

fill(color: fgColor) -> Any

fill(fgColor color) - fill entire bitmap by color

flipV

flipV(*args: Any, **kwargs: Any) -> Any

flip bitmap by vertical axis

getPixel

getPixel(x: Any, y: Any) -> fgColor

fgColor getPixel(x, y) - get color of pixel (x, y)

height instance-attribute

height: Any

bitmap height in pixels

row

row(*args: Any, **kwargs: Any) -> Any

Native fontgate.fgBitmap.row; argument details are not documented.

setPixel

setPixel(x: Any, y: Any, color: fgColor) -> Any

setPixel(x, y, fgColor color) - set color for pixel (x, y)

size instance-attribute

size: Any

overall bytes count for bitmap storage

width instance-attribute

width: Any

bitmap width in pixels