Drag[en]gine Script Module DragonScript
1.23
|
Loadable service image. More...
Classes | |
class | Thumbnail |
Loadable service image thumbnail. More... | |
Public Member Functions | |
ServiceImage | new () |
Create new instance of class ServiceImage. More... | |
Public Attributes | |
Image | image |
Loaded image or null. More... | |
Array | thumbnails |
List of thumbnails as Array of Thumbnail. More... | |
String | url |
URL from where the image can be loaded. More... | |
Loadable service image.
Images in services (like logo, avatar or gallery images) are typically provided by URL and have to be loaded when needed. Each image contains the filename and URL to load the image from. Loading support is provided by the service the image information originated from. The service caches the loaded image. If the service does not support loading images the image is stored directly. Furthermore each image can contain thumbnails which are resized versions of the image.
ServiceImage Dragengine.Services.ServiceImage.new | ( | ) |
Create new instance of class ServiceImage.
Image Dragengine.Services.ServiceImage.image |
Loaded image or null.
If url is null the image is stored directly.
Array Dragengine.Services.ServiceImage.thumbnails |
List of thumbnails as Array of Thumbnail.
String Dragengine.Services.ServiceImage.url |
URL from where the image can be loaded.
If null loading the image by url is not supported and the image member is used instead.