pixie

Source   Edit  

Types

FileFormat = enum
  PngFormat, BmpFormat, JpegFormat, GifFormat, QoiFormat, PpmFormat, WebpFormat
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 fill(image: Image; paint: Paint) {....raises: [PixieError],
                                        tags: [RootEffect], forbids: [].}
Fills the image with the paint. 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  

Exports

*, *, BlendMode, Image, ImageDimensions, PixieError, copy, dataIndex, mix, newImage, snapToPixels, BaselineAlignment, Context, TextMetrics, arc, arc, arcTo, arcTo, beginPath, bezierCurveTo, bezierCurveTo, circle, circle, clearRect, clearRect, clip, clip, closePath, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, ellipse, ellipse, fill, fill, fillCircle, fillEllipse, fillPolygon, fillRect, fillRect, fillRoundedRect, fillRoundedRect, fillText, fillText, getLineDash, getTransform, isPointInPath, isPointInPath, isPointInPath, isPointInPath, isPointInStroke, isPointInStroke, isPointInStroke, isPointInStroke, lineTo, lineTo, measureText, moveTo, moveTo, newContext, newContext, polygon, polygon, quadraticCurveTo, quadraticCurveTo, rect, rect, resetTransform, restore, rotate, roundedRect, roundedRect, save, saveLayer, scale, scale, setLineDash, setTransform, stroke, stroke, strokeCircle, strokeEllipse, strokePolygon, strokeRect, strokeRect, strokeRoundedRect, strokeRoundedRect, strokeSegment, strokeSegment, strokeText, strokeText, transform, translate, translate, Arrangement, Font, HorizontalAlignment, Span, TextCase, Typeface, VerticalAlignment, ascent, autoLineHeight, capHeight, computeBounds, copy, defaultLineHeight, descent, fallbackTypeface, fillText, fillText, getAdvance, getGlyphPath, getKerningAdjustment, hasGlyph, layoutBounds, layoutBounds, layoutBounds, lineGap, lineHeight, name, newFont, newSpan, paint, paint=, parseOtf, parseSvgFont, parseTtf, readFont, readTypeface, readTypefaces, scale, scale, strokeText, strokeText, typeset, typeset, decodeBase64, encodeBase64, $, Image, [], [], []=, []=, applyOpacity, blur, ceil, copy, dataIndex, diff, draw, drawTiled, fill, flipHorizontal, flipVertical, getColor, getRgbaSmooth, inside, invert, isOneColor, isOpaque, isTransparent, magnifyBy2, minifyBy2, newImage, opaqueBounds, resize, rotate90, setColor, shadow, subImage, subImage, superImage, unsafe, ColorStop, Paint, PaintKind, SomePaint, colorStop, copy, fillGradient, newPaint, parseSomePaint, $, LineCap, LineJoin, Path, SomePath, WindingRule, addPath, angleToMiterLimit, arc, arc, arcTo, arcTo, bezierCurveTo, bezierCurveTo, circle, circle, closePath, computeBounds, copy, defaultMiterLimit, ellipse, ellipse, ellipticalArcTo, fillOverlaps, fillPath, lineTo, lineTo, miterLimitToAngle, moveTo, moveTo, newPath, parsePath, polygon, polygon, quadraticCurveTo, quadraticCurveTo, rect, rect, roundedRect, roundedRect, strokeOverlaps, strokePath, transform