pixie

    Dark Mode
Search:
Group by:

Types

FileFormat = enum
  ffPng, ffBmp, ffJpg, ffGif

Procs

proc decodeImage(data: string | seq[uint8]): Image
Loads an image from a memory.
proc readImage(filePath: string): Image {...}{.raises: [PixieError, IOError],
    tags: [ReadIOEffect, RootEffect, WriteIOEffect].}
Loads an image from a file.
proc encodeImage(image: Image; fileFormat: FileFormat): string {...}{.
    raises: [PixieError], tags: [].}
Encodes an image into memory.
proc writeFile(image: Image; filePath: string; fileFormat: FileFormat) {...}{.
    raises: [IOError, PixieError], tags: [WriteIOEffect].}
Writes an image to a file.
proc writeFile(image: Image; filePath: string) {...}{.raises: [PixieError, IOError],
    tags: [WriteIOEffect].}
Writes an image to a file.
proc fillRect(image: Image; rect: Rect; color: SomeColor)
Fills a rectangle.
proc fillRect(mask: Mask; rect: Rect) {...}{.raises: [PixieError, Exception],
                                        tags: [RootEffect].}
Fills a rectangle.
proc strokeRect(image: Image; rect: Rect; color: SomeColor; strokeWidth = 1.0)
Strokes a rectangle.
proc strokeRect(mask: Mask; rect: Rect; strokeWidth = 1.0) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Strokes a rectangle.
proc fillRoundedRect(image: Image; rect: Rect; nw, ne, se, sw: float32;
                     color: SomeColor)
Fills a rounded rectangle.
proc fillRoundedRect(image: Image; rect: Rect; radius: float32; color: SomeColor)
Fills a rounded rectangle.
proc fillRoundedRect(mask: Mask; rect: Rect; nw, ne, se, sw: float32) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Fills a rounded rectangle.
proc fillRoundedRect(mask: Mask; rect: Rect; radius: float32) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Fills a rounded rectangle.
proc strokeRoundedRect(image: Image; rect: Rect; nw, ne, se, sw: float32;
                       color: SomeColor; strokeWidth = 1.0)
Strokes a rounded rectangle.
proc strokeRoundedRect(image: Image; rect: Rect; radius: float32;
                       color: SomeColor; strokeWidth = 1.0)
Strokes a rounded rectangle.
proc strokeRoundedRect(mask: Mask; rect: Rect; nw, ne, se, sw: float32;
                       strokeWidth = 1.0) {...}{.raises: [PixieError, Exception],
    tags: [RootEffect].}
Strokes a rounded rectangle.
proc strokeRoundedRect(mask: Mask; rect: Rect; radius: float32;
                       strokeWidth = 1.0) {...}{.raises: [PixieError, Exception],
    tags: [RootEffect].}
Strokes a rounded rectangle.
proc strokeSegment(image: Image; segment: Segment; color: SomeColor;
                   strokeWidth = 1.0)
Strokes a segment (draws a line from segment.at to segment.to).
proc strokeSegment(mask: Mask; segment: Segment; strokeWidth: float32) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Strokes a segment (draws a line from segment.at to segment.to).
proc fillEllipse(image: Image; center: Vec2; rx, ry: float32; color: SomeColor;
                 blendMode = bmNormal)
Fills an ellipse.
proc fillEllipse(mask: Mask; center: Vec2; rx, ry: float32) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Fills an ellipse.
proc strokeEllipse(image: Image; center: Vec2; rx, ry: float32;
                   color: SomeColor; strokeWidth = 1.0)
Strokes an ellipse.
proc strokeEllipse(mask: Mask; center: Vec2; rx, ry: float32; strokeWidth = 1.0) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Strokes an ellipse.
proc fillCircle(image: Image; center: Vec2; radius: float32; color: SomeColor)
Fills a circle.
proc fillCircle(mask: Mask; center: Vec2; radius: float32) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Fills a circle.
proc strokeCircle(image: Image; center: Vec2; radius: float32; color: SomeColor;
                  strokeWidth = 1.0)
Strokes a circle.
proc strokeCircle(mask: Mask; center: Vec2; radius: float32; strokeWidth = 1.0) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Strokes a circle.
proc fillPolygon(image: Image; pos: Vec2; size: float32; sides: int;
                 color: SomeColor)
Fills a polygon.
proc fillPolygon(mask: Mask; pos: Vec2; size: float32; sides: int) {...}{.
    raises: [PixieError, Exception], tags: [RootEffect].}
Fills a polygon.
proc strokePolygon(image: Image; pos: Vec2; size: float32; sides: int;
                   color: SomeColor; strokeWidth = 1.0)
Strokes a polygon.
proc strokePolygon(mask: Mask; pos: Vec2; size: float32; sides: int;
                   strokeWidth = 1.0) {...}{.raises: [PixieError, Exception],
                                        tags: [RootEffect].}
Strokes a polygon.

Converters

converter autoStraightAlpha(c: ColorRGBX): ColorRGBA {...}{.inline, raises: [],
    tags: [].}
Convert a paremultiplied alpha RGBA to a straight alpha RGBA.
converter autoPremultipliedAlpha(c: ColorRGBA): ColorRGBX {...}{.inline, raises: [],
    tags: [].}
Convert a straight alpha RGBA to a premultiplied alpha RGBA.