Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 | SDK Documentation | Builds | BA3 Home |
Public Member Functions | |
Image () | |
Image (string fileName) | |
Image (int width, int height, VectorByte imageData_byte) | |
Image (int width, int height) | |
void | init () |
VectorByte | data () |
void | data_set (VectorByte val) |
vec2i | getSize () |
void | clear () |
void | resize (unsigned int newWidth, unsigned int newHeight, ImageFormat newFormat) |
void | setPixel (int x, int y, byte r, byte g, byte b, byte a) |
void | setPixel (int x, int y, Color c) |
void | multiplyAlpha () |
Color | getPixel (int x, int y) |
Color | getPixelInterpolated (float x, float y) |
ushort | getPixelCompressed (int x, int y) |
unsigned int | getBytesPerPixel () |
void | createErrorTexture () |
void | createCheckerBoard (int imageWidth, int imageHeight, int cellWidth, int cellHeight, Color color1, Color color2) |
void | fillRect (int x, int y, int width, int height, Color c) |
Image | flip () |
Image | getTransformedImageUsingColorBar (ColorBar colorBar, uint channel, bool interpolated) |
bool | loadPngFromMemory (VectorByte pngdata) |
bool | loadFromMemory (VectorByte data) |
void | convertToTwoByte () |
void | convertRGBA8888toRGB888 () |
void | convertRGBA8888toRGBA4444 () |
void | convertRGBA8888toRGBA4444thenSlim () |
void | convertRGBA8888toRGB565 () |
void | convertRGB888toRGB565 () |
ImageFormat | getFormat () |
bool | containsClearPixels () |
Public Attributes | |
int | width |
int | height |
bool | hasAlpha |
bool | hadLoadingError |
AltusUnified::Image::Image | ( | ) |
AltusUnified::Image::Image | ( | string | fileName | ) |
AltusUnified::Image::Image | ( | int | width, |
int | height, | ||
VectorByte | imageData_byte | ||
) |
AltusUnified::Image::Image | ( | int | width, |
int | height | ||
) |
void AltusUnified::Image::clear | ( | ) |
bool AltusUnified::Image::containsClearPixels | ( | ) |
void AltusUnified::Image::convertRGB888toRGB565 | ( | ) |
void AltusUnified::Image::convertRGBA8888toRGB565 | ( | ) |
void AltusUnified::Image::convertRGBA8888toRGB888 | ( | ) |
void AltusUnified::Image::convertRGBA8888toRGBA4444 | ( | ) |
void AltusUnified::Image::convertRGBA8888toRGBA4444thenSlim | ( | ) |
void AltusUnified::Image::convertToTwoByte | ( | ) |
void AltusUnified::Image::createCheckerBoard | ( | int | imageWidth, |
int | imageHeight, | ||
int | cellWidth, | ||
int | cellHeight, | ||
Color | color1, | ||
Color | color2 | ||
) |
void AltusUnified::Image::createErrorTexture | ( | ) |
VectorByte AltusUnified::Image::data | ( | ) |
void AltusUnified::Image::data_set | ( | VectorByte | val | ) |
void AltusUnified::Image::fillRect | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
Color | c | ||
) |
Image AltusUnified::Image::flip | ( | ) |
unsigned int AltusUnified::Image::getBytesPerPixel | ( | ) |
ImageFormat AltusUnified::Image::getFormat | ( | ) |
Color AltusUnified::Image::getPixel | ( | int | x, |
int | y | ||
) |
ushort AltusUnified::Image::getPixelCompressed | ( | int | x, |
int | y | ||
) |
Color AltusUnified::Image::getPixelInterpolated | ( | float | x, |
float | y | ||
) |
vec2i AltusUnified::Image::getSize | ( | ) |
Image AltusUnified::Image::getTransformedImageUsingColorBar | ( | ColorBar | colorBar, |
uint | channel, | ||
bool | interpolated | ||
) |
void AltusUnified::Image::init | ( | ) |
bool AltusUnified::Image::loadFromMemory | ( | VectorByte | data | ) |
bool AltusUnified::Image::loadPngFromMemory | ( | VectorByte | pngdata | ) |
void AltusUnified::Image::multiplyAlpha | ( | ) |
void AltusUnified::Image::resize | ( | unsigned int | newWidth, |
unsigned int | newHeight, | ||
ImageFormat | newFormat | ||
) |
void AltusUnified::Image::setPixel | ( | int | x, |
int | y, | ||
byte | r, | ||
byte | g, | ||
byte | b, | ||
byte | a | ||
) |
void AltusUnified::Image::setPixel | ( | int | x, |
int | y, | ||
Color | c | ||
) |
bool AltusUnified::Image::hadLoadingError |
bool AltusUnified::Image::hasAlpha |
int AltusUnified::Image::height |
int AltusUnified::Image::width |