This documentation is currently available in Portuguese. English and other languages are on the way.
Cookbook
Recipes · Images
Loading images from the gallery or the camera, generating thumbnails and saving without blowing the device's memory.
How-to🟡
How to capture a screenshot of the screen
Capture the current backbuffer as an Image with Main.getScreenShot and save it.
How-to🟢
How to load an image from a file or from the network
Load a PNG/JPEG/GIF from a local file or downloaded from the network and display it with ImageView.
How-to🟢
How to set a background image on a Component
Add a background image to any Component with addBackgroundImage and ImageSize.
How-to🟡
How to generate a thumbnail
Resize an image to a thumbnail with resize(), choosing mode and quality.
How-to🟢
How to save an image as PNG or JPEG
Write an Image to disk (timestamped file) or to an OutputStream, as PNG or JPEG.