Package org.mozilla.geckoview
Class Image
Object
org.mozilla.geckoview.Image
Represents an Web API image resource as used in web app manifests and media session metadata.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Thrown whenever an image cannot be processed bygetBitmap(int)
-
Method Summary
Modifier and TypeMethodDescriptiongetBitmap
(int size) Get the best version of this image for sizesize
.
-
Method Details
-
getBitmap
Get the best version of this image for sizesize
. Embedders are encouraged to cache the result of this method keyed with this instance.- Parameters:
size
- pixel size at which this image will be displayed at.- Returns:
- A
GeckoResult
that resolves to the bitmap when ready. Will resolve exceptionally toImage.ImageProcessingException
if the image cannot be processed.
-