Drag[en]gine Script Module DragonScript  1.23
Dragengine.Services.ServiceImage Class Reference

Loadable service image. More...

Inheritance diagram for Dragengine.Services.ServiceImage:

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...
 

Detailed Description

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.

Member Function Documentation

◆ new()

ServiceImage Dragengine.Services.ServiceImage.new ( )

Create new instance of class ServiceImage.

Member Data Documentation

◆ image

Image Dragengine.Services.ServiceImage.image

Loaded image or null.

If url is null the image is stored directly.

◆ thumbnails

Array Dragengine.Services.ServiceImage.thumbnails

List of thumbnails as Array of Thumbnail.

◆ url

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.


The documentation for this class was generated from the following file: