Kaba class Image ed
...
Syntax ed
class Image
var alpha_used: bool
var data: i32[]
var error: bool
var height: i32
var mode: i32
var width: i32
# constructors
func mut __init__()
func mut __init__(width: i32, height: i32, c: Color)
# functions
func mut clear()
func mut create(width: i32, height: i32, c: Color)
func pure get_pixel(x: i32, y: i32) -> Color
func pure get_pixel_smooth(x: f32, y: f32) -> Color
func save(filename: Path)
func scale(width: i32, height: i32) -> xfer[Image]
func mut set_pixel(x: i32, y: i32, c: Color)
func mut start_draw() -> xfer[Painter]
func static load(filename: Path) -> xfer[Image]
# operators
func mut __assign__(other: Image) # Image = Image
Functions ed
- func mut clear()
- ...
- func mut create(width: i32, height: i32, c: Color)
- ...
- func pure get_pixel(x: i32, y: i32) -> Color
- ...
- func pure get_pixel_smooth(x: f32, y: f32) -> Color
- ...
- func save(filename: Path)
- ...
- func scale(width: i32, height: i32) -> xfer[Image]
- ...
- func mut set_pixel(x: i32, y: i32, c: Color)
- ...
- func mut start_draw() -> xfer[Painter]
- ...
- func static load(filename: Path) -> xfer[Image]
- ...
Elements ed
- var alpha_used: bool
- ...
- var data: i32[]
- ...
- var error: bool
- ...
- var height: i32
- ...
- var mode: i32
- ...
- var width: i32
- ...