UNPKG

pxt-common-packages

Version:
48 lines 3.08 kB
{ "Image.blit": "Copy an image from a source rectangle to a destination rectangle, stretching or\ncompressing to fit the dimensions of the destination rectangle, if necessary.", "Image.blitRow": "Scale and copy a row of pixels from a texture.", "Image.clone": "Return a copy of the current image", "Image.copyFrom": "Sets all pixels in the current image from the other image, which has to be of the same size and\nbpp.", "Image.doubled": "Stretches the image in both directions by 100%", "Image.doubledX": "Stretches the image horizontally by 100%", "Image.doubledY": "Stretches the image vertically by 100%", "Image.drawCircle": "Draw a circle", "Image.drawIcon": "Draw an icon (monochromatic image) using given color", "Image.drawImage": "Draw given image on the current image", "Image.drawLine": "Draw a line", "Image.drawRect": "Draw an empty rectangle", "Image.drawTransparentImage": "Draw given image with transparent background on the current image", "Image.equals": "Returns true if the provided image is the same as this image,\notherwise returns false.", "Image.fill": "Fill entire image with a given color", "Image.fillCircle": "Fills a circle", "Image.fillPolygon4": "Fills a 4-side-polygon", "Image.fillRect": "Fill a rectangle", "Image.fillTriangle": "Fills a triangle", "Image.flipX": "Flips (mirrors) pixels horizontally in the current image", "Image.flipY": "Flips (mirrors) pixels vertically in the current image", "Image.getPixel": "Get a pixel color", "Image.getRows": "Copy row(s) of pixel from image to buffer (8 bit per pixel).", "Image.height": "Get the height of the image", "Image.isMono": "True if the image is monochromatic (black and white)", "Image.mapRect": "Replace colors in a rectangle", "Image.overlapsWith": "Check if the current image \"collides\" with another", "Image.replace": "Replaces one color in an image with another", "Image.rotated": "Returns an image rotated by -90, 90, -180, 180, -270, 270 deg clockwise", "Image.scroll": "Every pixel in image is moved by (dx,dy)", "Image.setPixel": "Set pixel color", "Image.setRows": "Copy row(s) of pixel from buffer to image.", "Image.transposed": "Returns a transposed image (with X/Y swapped)", "Image.width": "Get the width of the image", "ScreenImage.brightness": "Gets current screen backlight brightness (0-100)", "ScreenImage.setBrightness": "Sets the screen backlight brightness (10-100)", "helpers.imageRotated": "Returns an image rotated by 90, 180, 270 deg clockwise", "image.create": "Create new empty (transparent) image", "image.doubledIcon": "Double the size of an icon", "image.getDimension": "Returns the width or height of a picture.\n* @param picture The picture to get the width or height of\n\n@returns", "image.getDimension|param|dimension": "The dimension to get", "image.ofBuffer": "Create new image with given content", "image.screenImage": "Get the screen image", "images": "Image manipulation blocks", "images._image": "An image", "images._image|param|image": "the image" }