img
Image processing, manipulation, formats.
Load with: use img
Quick example
use img
result = imgld("value")
prn(result)
Functions
Load/Save
imgld(pt)
Performs the operation. Takes pt.
imgsv(img, pt, fmt)
Performs the operation. Takes img, pt, fmt.
Create
imgne(w, h, ch)
Creates a new instance. Takes w, h, ch.
imgfr(dt, w, h, ch)
Creates from another format. Takes dt, w, h, ch.
Properties
imgwh(img)
Performs the operation. Takes img.
imgch(img)
Checks a condition. Takes img.
Pixel access
imggt(img, x, y)
Performs the operation. Takes img, x, y.
imgst(img, x, y, v)
Sets a value or starts a process. Takes img, x, y, v.
Transform
imgre(img, w, h)
Performs the operation. Takes img, w, h.
imgcr(img, x, y, w, h)
Creates a new instance. Takes img, x, y, w, h.
Filters
imgfl(img, tp)
Performs the operation. Takes img, tp.
Color
imgbr(img, v)
Performs the operation. Takes img, v.
imgct(img, v)
Performs the operation. Takes img, v.
imgst(img, v)
Sets a value or starts a process. Takes img, v.
Composite
imgov(bg, fg, x, y)
Performs the operation. Takes bg, fg, x, y.
Encode to buffer
imgb6(img, fmt)
Performs the operation. Takes img, fmt.
Decode from buffer
imgdb(s)
Performs the operation. Takes s.
Thumbnail
imgth(img, mw, mh)
Performs the operation. Takes img, mw, mh.
Draw
imgpx(img, x, y, c)
Performs the operation. Takes img, x, y, c.
imgln(img, x1, y1, x2, y2, c)
Performs the operation. Takes img, x1, y1, x2, y2, c.
imgcr(img, x, y, r, c)
Creates a new instance. Takes img, x, y, r, c.
imgrc(img, x, y, w, h, c)
Performs the operation. Takes img, x, y, w, h, c.
imgtx(img, x, y, t, fn, sz, c)
Performs the operation. Takes img, x, y, t, fn, sz, c.
QR code
imgqr(txt, sz)
Performs the operation. Takes txt, sz.
Watermark
imgwm(img, wm, x, y, op)
Performs the operation. Takes img, wm, x, y, op.
Notes
- Image loading, saving, pixel access.