// Auto-generated. Do not edit. declare interface Image { /** * Get the width of the image */ //% property shim=ImageMethods::width width: int32; /** * Get the height of the image */ //% property shim=ImageMethods::height height: int32; /** * True iff the image is monochromatic (black and white) */ //% property shim=ImageMethods::isMono isMono: boolean; /** * Set pixel color */ //% shim=ImageMethods::set set(x: int32, y: int32, c: int32): void; /** * Get a pixel color */ //% shim=ImageMethods::get get(x: int32, y: int32): int32; /** * Fill entire image with a given color */ //% shim=ImageMethods::fill fill(c: int32): void; /** * Return a copy of the current image */ //% shim=ImageMethods::clone clone(): Image; /** * Flips (mirrors) pixels horizontally in the current image */ //% shim=ImageMethods::flipX flipX(): void; /** * Flips (mirrors) pixels vertically in the current image */ //% shim=ImageMethods::flipY flipY(): void; /** * Every pixel in image is moved by (dx,dy) */ //% shim=ImageMethods::scroll scroll(dx: int32, dy: int32): void; /** * Stretches the image horizontally by 100% */ //% shim=ImageMethods::doubledX doubledX(): Image; /** * Stretches the image vertically by 100% */ //% shim=ImageMethods::doubledY doubledY(): Image; /** * Replaces one color in an image with another */ //% shim=ImageMethods::replace replace(from: int32, to: int32): void; /** * Stretches the image in both directions by 100% */ //% shim=ImageMethods::doubled doubled(): Image; /** * Draw given image on the current image */ //% shim=ImageMethods::drawImage drawImage(from: Image, x: int32, y: int32): void; /** * Draw given image with transparent background on the current image */ //% shim=ImageMethods::drawTransparentImage drawTransparentImage(from: Image, x: int32, y: int32): void; /** * Check if the current image "collides" with another */ //% shim=ImageMethods::overlapsWith overlapsWith(other: Image, x: int32, y: int32): boolean; } declare namespace image { /** * Create new empty (transparent) image */ //% shim=image::create function create(width: int32, height: int32): Image; /** * Create new image with given content */ //% shim=image::ofBuffer function ofBuffer(buf: Buffer): Image; /** * Double the size of an icon */ //% shim=image::doubledIcon function doubledIcon(icon: Buffer): Buffer; } // Auto-generated. Do not edit. Really.