AdvancedOptionalantialiasWhether to enable anti-aliasing during extraction. Improves quality but may affect performance.
OptionalclearThe color used to clear the extracted content before rendering. Can be a hex number, string, or array of numbers.
OptionalformatThe format of the extracted image.
OptionalframeThe region of the target to extract. If not specified, extracts the entire target.
OptionalqualityThe quality of the extracted image, between 0 and 1. Only applies to lossy formats (jpg, webp).
OptionalresolutionThe resolution of the extracted content. Higher values create sharper images.
The target to extract. Can be a Container or Texture.
Options for extracting an HTMLImage from the renderer. Combines base extraction options with image-specific settings.
Example
Combines all options from:
Common use cases:
See