getPixels
getPixels: (IndexedSprite) -> {number}The palette indices, row by row (width * height of them).
ImageUtil.getImageIndexedSprite(…)
client:createIndexedSprite()| Method | Returns | Description |
|---|---|---|
getPixels() | {number} | The palette indices, row by row (width * height of them). |
setPixels({number}) | () | Set the palette indices (each taken as a signed byte: -1 is index 255). |
getPalette() | {number} | The palette: 24-bit RGB colours, entry 0 unused (index 0 is never drawn). |
setPalette({number}) | () | Set the palette (at most 256 colours). |
getOffsetX() | number | Where the stored pixels start in the full frame, across. |
setOffsetX(number) | () | Set the across offset. |
getOffsetY() | number | Where the stored pixels start in the full frame, down. |
setOffsetY(number) | () | Set the down offset. |
getWidth() | number | The stored pixels' width. |
setWidth(number) | () | Set the stored pixels' width. |
getHeight() | number | The stored pixels' height. |
setHeight(number) | () | Set the stored pixels' height. |
getOriginalWidth() | number | The full frame's width: what the font advances by after the icon. |
setOriginalWidth(number) | () | Set the full frame's width. |
getOriginalHeight() | number | The full frame's height: the font aligns the icon's bottom on the text's baseline by it. |
setOriginalHeight(number) | () | Set the full frame's height. |
equals(any) | boolean | Whether other equals this IndexedSprite, as == answers it (false for a value of another class). |
| Method | Returns | Description |
|---|---|---|
Client.createIndexedSprite | IndexedSprite | A new, empty IndexedSprite (no pixels, no palette, every size 0). |
Client.getModIcons | {IndexedSprite}? | The chat icons <img=n> draws, as a live 1-based view of the client's array (one for every plugin): icons[n + 1] is the icon <img=n> d… |
ImageUtilClass.getImageIndexedSprite | IndexedSprite | The image as an IndexedSprite (a chat icon for client:getModIcons()): a palette of its fully opaque colours after an unused entry 0, ev… |
getPixelsgetPixels: (IndexedSprite) -> {number}The palette indices, row by row (width * height of them).
setPixelssetPixels: (IndexedSprite, {number}) -> ()Set the palette indices (each taken as a signed byte: -1 is index 255).
getPalettegetPalette: (IndexedSprite) -> {number}The palette: 24-bit RGB colours, entry 0 unused (index 0 is never drawn).
setPalettesetPalette: (IndexedSprite, {number}) -> ()Set the palette (at most 256 colours).
getOffsetXgetOffsetX: (IndexedSprite) -> numberWhere the stored pixels start in the full frame, across.
setOffsetXsetOffsetX: (IndexedSprite, number) -> ()Set the across offset.
getOffsetYgetOffsetY: (IndexedSprite) -> numberWhere the stored pixels start in the full frame, down.
setOffsetYsetOffsetY: (IndexedSprite, number) -> ()Set the down offset.
getWidthgetWidth: (IndexedSprite) -> numberThe stored pixels' width.
setWidthsetWidth: (IndexedSprite, number) -> ()Set the stored pixels' width.
getHeightgetHeight: (IndexedSprite) -> numberThe stored pixels' height.
setHeightsetHeight: (IndexedSprite, number) -> ()Set the stored pixels' height.
getOriginalWidthgetOriginalWidth: (IndexedSprite) -> numberThe full frame's width: what the font advances by after the icon.
setOriginalWidthsetOriginalWidth: (IndexedSprite, number) -> ()Set the full frame's width.
getOriginalHeightgetOriginalHeight: (IndexedSprite) -> numberThe full frame's height: the font aligns the icon's bottom on the text's baseline by it.
setOriginalHeightsetOriginalHeight: (IndexedSprite, number) -> ()Set the full frame's height.
equalsequals: (IndexedSprite, any) -> booleanWhether other equals this IndexedSprite, as == answers it (false for a value of another class).