Internal class for loading an image that has been split into an alpha channel image and a RGB only color image.
The data properties
The source path to the color image
The source path to the alpha image
If we should cache the result
Id of asset
The event to call when done
Define if certain sizes are not supported
Pulled from EaselJS's SpriteSheetUtils. Merges the rgb channels of one image with the alpha channel of another. This can be used to combine a compressed JPEG image containing color data with a PNG32 monochromatic image containing alpha data. With certain types of images (those with detail that lend itself to JPEG compression) this can provide significant file size savings versus a single RGBA PNG32. This method is very fast (generally on the order of 1-2 ms to run).
The image (or canvas) containing the RGB channels to use.
The image (or canvas) containing the alpha channel to use.
If specified, this canvas will be used and returned. If not, a new canvas will be created.
A canvas with the combined image data. This can be used as a source for a Texture.
Start the task
Callback when finished
The atlas alpha source path
The atlas color source path