Namespace CAAT.Module.Image.ImageUtil
Defined in: ImageUtil.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
CAAT.Module.Image.ImageUtil.createAlphaSpriteSheet(maxAlpha, minAlpha, sheetSize, image, bg_fill_style)
|
<static> |
CAAT.Module.Image.ImageUtil.createThumb(image, w, h, best_fit)
|
<static> |
CAAT.Module.Image.ImageUtil.optimize(image, threshold, areas)
Remove an image's padding transparent border.
|
<static> |
CAAT.Module.Image.ImageUtil.rotate(image, angle)
Creates a rotated canvas image element.
|
Method Detail
<static>
CAAT.Module.Image.ImageUtil.createAlphaSpriteSheet(maxAlpha, minAlpha, sheetSize, image, bg_fill_style)
- Parameters:
- maxAlpha
- minAlpha
- sheetSize
- image
- bg_fill_style
<static>
CAAT.Module.Image.ImageUtil.createThumb(image, w, h, best_fit)
- Parameters:
- image
- w
- h
- best_fit
<static>
CAAT.Module.Image.ImageUtil.optimize(image, threshold, areas)
Remove an image's padding transparent border.
Transparent means that every scan pixel is alpha=0.
- Parameters:
- image
- threshold
- areas
<static>
CAAT.Module.Image.ImageUtil.rotate(image, angle)
Creates a rotated canvas image element.
- Parameters:
- image
- angle