bitmap
Generated by tinox doc
tinox.core.bitmap, split out of the bundled stdlib as a standalone tinox-central package.
class Bitmap
Fields
width | Int64 | |
height | Int64 | |
pixels | List<Int64> |
Methods
fn create(width: Int64, height: Int64, color: Int64) → Bitmap
fn getPixel(bitmap: Bitmap, x: Int64, y: Int64) → Int64
fn setPixel(bitmap: Bitmap, x: Int64, y: Int64, color: Int64) → Nothing
fn fillRect(bitmap: Bitmap, x: Int64, y: Int64, w: Int64, h: Int64, color: Int64) → Nothing
fn drawLine(bitmap: Bitmap, x0: Int64, y0: Int64, x1: Int64, y1: Int64, color: Int64) → Nothing
fn drawCircle(bitmap: Bitmap, cx: Int64, cy: Int64, radius: Int64, color: Int64) → Nothing