This commit is contained in:
Peli de Halleux
2019-03-04 20:44:01 -08:00
parent 0c6e65d828
commit a3e431c892
4 changed files with 55 additions and 11 deletions

View File

@ -45,6 +45,18 @@ declare interface Image {
//% shim=ImageMethods::fill
fill(c: int32): void;
/**
* Copy row(s) of pixel from image to buffer (8 bit per pixel).
*/
//% shim=ImageMethods::getRows
getRows(x: int32, dst: Buffer): void;
/**
* Copy row(s) of pixel from buffer to image.
*/
//% shim=ImageMethods::setRows
setRows(x: int32, src: Buffer): void;
/**
* Return a copy of the current image
*/