Types
FileFormat = enum PngFormat, BmpFormat, JpegFormat, GifFormat, QoiFormat, PpmFormat
- Source Edit
Procs
proc decodeImage(data: string): Image {....raises: [PixieError], tags: [RootEffect, ReadIOEffect, WriteIOEffect], forbids: [].}
- Loads an image from memory. Source Edit
proc decodeImageDimensions(data: pointer; len: int): ImageDimensions {. ...raises: [PixieError], tags: [], forbids: [].}
- Decodes an image's dimensions from memory. Source Edit
proc decodeImageDimensions(data: string): ImageDimensions {. ...raises: [PixieError], tags: [], forbids: [].}
- Decodes an image's dimensions from memory. Source Edit
proc encodeImage(image: Image; fileFormat: FileFormat): string {. ...raises: [PixieError], tags: [], forbids: [].}
- Encodes an image into memory. Source Edit
proc readImage(filePath: string): Image {.inline, ...raises: [PixieError], tags: [RootEffect, ReadIOEffect, WriteIOEffect], forbids: [].}
- Loads an image from a file. Source Edit
proc readImageDimensions(filePath: string): ImageDimensions {.inline, ...raises: [PixieError], tags: [ReadIOEffect], forbids: [].}
- Decodes an image's dimensions from a file. Source Edit
proc writeFile(image: Image; filePath: string) {....raises: [PixieError], tags: [WriteIOEffect], forbids: [].}
- Writes an image to a file. Source Edit
Converters
converter autoPremultipliedAlpha(c: ColorRGBA): ColorRGBX {.inline, ...raises: [], tags: [], forbids: [].}
- Convert a straight alpha RGBA to a premultiplied alpha RGBA. Source Edit
converter autoStraightAlpha(c: ColorRGBX): ColorRGBA {.inline, ...raises: [], tags: [], forbids: [].}
- Convert a premultiplied alpha RGBA to a straight alpha RGBA. Source Edit