fontgate.fgBitmap
fgBitmap
Bitmap representation
Constructors: fgBitmap() - default fgBitmap(fgBitmap) - make orphan copy of another object fgBitmap(width, height, bitsPerPixel) fgBitmap(width, height, rowBytes, bitsPerPixel, bytesarray)
Native bases: object
Captured native MRO: fgBitmap, object
Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, /, *args: Any, **kwargs: Any) -> None |
Initialize self. (shared captured text) |
asDict |
function | (self, *args: Any, **kwargs: Any) -> Any |
Represent object as dictionary |
asTuple |
function | (self, *args: Any, **kwargs: Any) -> Any |
Represent object as tuple |
bpp |
attribute | Any |
Bits per pixel |
bytes |
attribute | Any |
Bytes per row |
clear |
function | (self, *args: Any, **kwargs: Any) -> Any |
Clear all data |
clone |
function | (self, source: fgBitmap) -> Any |
Make clone of source bitmap |
copy |
function | (self, *args: Any, **kwargs: Any) -> Any |
|
copyData |
function | (self, *args: Any, **kwargs: Any) -> Any |
Assign new bitmap data |
create |
function | (self, *args: Any, **kwargs: Any) -> Any |
Allocate new bitmap data |
data |
attribute | Any |
Bitmap data |
downsample |
function | (self, arg0: fgBitmap, oversampling: int) -> Any |
|
empty |
function | (self) -> bool |
Bool empty() - return true if no data assigned or bitmap size is 0 |
emptyRow |
function | (self, y: Any, x0: Any, x1: Any) -> Any |
Return true if part of row y from x0 till x1 has no non-zero pixels |
fill |
function | (self, color: fgColor) -> Any |
Fill entire bitmap by color |
flipV |
function | (self, *args: Any, **kwargs: Any) -> Any |
Flip bitmap by vertical axis |
getPixel |
function | (self, x: Any, y: Any) -> fgColor |
|
height |
attribute | Any |
Bitmap height in pixels |
row |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native fontgate.fgBitmap.row; argument details are not documented. |
setPixel |
function | (self, x: Any, y: Any, color: fgColor) -> Any |
|
size |
attribute | Any |
Overall bytes count for bitmap storage |
width |
attribute | Any |
Bitmap width in pixels |