pixie

Types

FileFormat = enum
  ffPng, ffBmp, ffJpg, ffGif
  Source Edit

Procs

proc decodeImage(data: string | seq[uint8]): Image {...}{.raises: [PixieError].}
Loads an image from memory.   Source Edit
proc decodeMask(data: string | seq[uint8]): Mask {...}{.raises: [PixieError].}
Loads a mask from memory.   Source Edit
proc readImage(filePath: string): Image {...}{.inline, raises: [PixieError],
    tags: [ReadIOEffect, RootEffect, WriteIOEffect].}
Loads an image from a file.   Source Edit
proc readMask(filePath: string): Mask {...}{.raises: [PixieError],
                                        tags: [ReadIOEffect].}
Loads a mask from a file.   Source Edit
proc encodeImage(image: Image; fileFormat: FileFormat): string {...}{.
    raises: [PixieError], tags: [].}
Encodes an image into memory.   Source Edit
proc encodeMask(mask: Mask; fileFormat: FileFormat): string {...}{.
    raises: [PixieError], tags: [].}
Encodes a mask into memory.   Source Edit
proc writeFile(image: Image; filePath: string) {...}{.raises: [PixieError],
    tags: [WriteIOEffect].}
Writes an image to a file.   Source Edit
proc writeFile(mask: Mask; filePath: string) {...}{.raises: [PixieError],
    tags: [WriteIOEffect].}
Writes a mask to a file.   Source Edit

Converters

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

Exports

maskerSimd, Masker, blender, hasSimdBlender, Blender, BlenderSimd, MaskerSimd, blenderSimd, hasSimdMasker, masker, BlendMode, blendAlpha, snapToPixels, mix, mix, PixieError, arc, beginPath, bezierCurveTo, drawImage, save, fillText, roundedRect, isPointInStroke, arcTo, getTransform, fill, fillRect, rect, closePath, bezierCurveTo, strokeCircle, strokeSegment, drawImage, fillRoundedRect, strokeRoundedRect, getLineDash, lineTo, polygon, setTransform, drawImage, clip, strokeRoundedRect, rotate, quadraticCurveTo, isPointInPath, strokeText, fillEllipse, drawImage, clearRect, restore, fillRoundedRect, lineTo, moveTo, quadraticCurveTo, arcTo, clearRect, translate, polygon, isPointInStroke, resetTransform, strokeRect, translate, ellipse, arc, drawImage, newContext, measureText, fillRect, drawImage, clip, TextMetrics, fillPolygon, transform, isPointInStroke, roundedRect, isPointInStroke, setLineDash, isPointInPath, scale, stroke, Context, isPointInPath, isPointInPath, fillText, fill, rect, scale, saveLayer, stroke, moveTo, strokePolygon, strokeRect, newContext, fillCircle, strokeEllipse, strokeText, circle, ellipse, strokeSegment, circle, scale, Span, scale, readFont, getAdvance, TextCase, Typeface, Arrangement, HorizontalAlignment, computeBounds, fillText, strokeText, lineGap, paint, computeBounds, ascent, VerticalAlignment, fallbackTypeface, Font, defaultLineHeight, typeset, parseOtf, newSpan, readTypeface, descent, parseSvgFont, paint=, strokeText, fillText, autoLineHeight, computeBounds, hasGlyph, getKerningAdjustment, typeset, parseTtf, getGlyphPath, newFont, lineHeight, setRgbaUnsafe, getRgbaUnsafe, isTransparent, draw, []=, Image, copy, draw, isOneColor, inside, getRgbaSmooth, invert, flipVertical, magnifyBy2, draw, setColor, subImage, diff, $, shadow, dataIndex, minifyBy2, newImage, draw, fill, newMask, blur, newImage, flipHorizontal, drawTiled, applyOpacity, resize, superImage, fillUnsafe, getColor, [], $, setValueUnsafe, minifyBy2, spread, dataIndex, []=, getValueSmooth, copy, fill, newMask, setValue, getValue, Mask, getValueUnsafe, magnifyBy2, ceil, blur, fillUnsafe, inside, [], PaintKind, colorStop, fillGradient, newPaint, newPaint, ColorStop, parseSomePaint, SomePaint, Paint, arc, bezierCurveTo, LineCap, arcTo, LineJoin, strokeOverlaps, circle, bezierCurveTo, SomePath, fillOverlaps, $, parsePath, lineTo, polygon, roundedRect, quadraticCurveTo, circle, strokePath, defaultMiterLimit, newPath, Path, lineTo, moveTo, quadraticCurveTo, arcTo, ellipse, arc, polygon, strokePath, angleToMiterLimit, transform, miterLimitToAngle, roundedRect, rect, fillPath, computeBounds, closePath, addPath, rect, ellipticalArcTo, ellipse, WindingRule, moveTo, fillPath