new AxWebImage(sourcenon-null, pixelFormatnon-null)
Creates an instance of AxImage
Parameters:
Name | Type | Description |
---|---|---|
source |
AxImage | Source image to copy |
pixelFormat |
AxPixelFormat | Pixel format for the new image |
- Source:
Methods
Load(source, callbackContext, callback)
Loads the image from a given stream
If the particular implementation of AxImage does not support the format in which the source data is encoded, it should return false
Different implementations of AxImage can load differently encoded images
Parameters:
Name | Type | Description |
---|---|---|
source |
AxStream | Stream containing the image encoded in its particular format |
callbackContext |
* | An object which is to be passed to the callback. It can be used to serve as a context for the callback or just to pass any relevant data |
callback |
AxImageLoadedCallback | A callback method which is to be called when the loading has finished |