Class Image


@AnyThread public class Image extends Object
Represents an Web API image resource as used in web app manifests and media session metadata.
  • Method Details

    • getBitmap

      @NonNull public GeckoResult<Bitmap> getBitmap(int size)
      Get the best version of this image for size size. Embedders are encouraged to cache the result of this method keyed with this instance.
      size - pixel size at which this image will be displayed at.
      A GeckoResult that resolves to the bitmap when ready. Will resolve exceptionally to Image.ImageProcessingException if the image cannot be processed.