Class: ImageUtils

ImageUtils()

new ImageUtils()

Class containing utility functions for images
Source:

Methods

getIcon(pIconType, pDescription, pBase64) → {String}

reads a picture depending on description and icon_type from ASYS_ICONS
Parameters:
Name Type Description
pIconType String requ ICON_TYPE of ASYS_ICONS
pDescription String requ DESCRIPTION of ASYS_ICONS
pBase64 Boolean opt true/undefined: BINDATA (Tables, trees) or false: ID (Icons, XMPP picture)
Source:
Returns:
BINDATA of ASYS_ICONS
Type
String

getImageObject(pIconType, pBase64) → {Array.<Array.<String>>}

reads frequently used combination of description and bindata/id from ASYS_ICONS
Parameters:
Name Type Description
pIconType String ICON_TYPE of ASYS_ICONS
pBase64 Boolean opt true: BINDATA or false/undefined: ID
Source:
Returns:
Key: Description, Value: ID
Type
Array.<Array.<String>>