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
Nested ClassesModifier and TypeClassDescriptionstatic classThrown 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
GeckoResultthat resolves to the bitmap when ready. Will resolve exceptionally toImage.ImageProcessingExceptionif the image cannot be processed.
-