Poly Image
Image representation in PolyUI. The image is lazily-loaded from the resourcePath.
Parameters
the path to the resource
the image type. This is automatically inferred from the file extension normally, but you can manually select it.
Types
Styles for Google Material icons
Types for images in PolyUI.
Functions
load the given resource synchronously into a new byte array. you may then perform any operations on the result.
load the given resource synchronously, mapping to definitely non-nullable type T. you may then perform any operations on the result.
Use this method to execute any callbacks that were added before the resource was initialized.
Set the class that will be used to load this resource. This is useful if you want to load resources from a different classloader or package. Note that you can only set this once, and all subsequent calls will be ignored.
return the stream of this resource. it is the caller's responsibility to close the stream.