Glyph

Bitmap import & Trace

Glyph treats raster images as reference / tracing aids — they render on the canvas but are excluded from .gds export. Use them to import a photo, scan, or screenshot of an existing layout and trace it into real polygons.

The Glyph Trace-bitmap dialog: an imported raster reference on the canvas beside a live preview of the traced polygon outlines, with the cutoff, steps, edges, and colours mode controls.

Import a bitmap

Three equivalent ways:

The import dialog shows a thumbnail and asks for the µm per pixel scale (with 0.1 / 0.5 / 1 / 5 / 10 µm/px presets). Very large images are auto-downsampled to a sane maximum before import — the dialog says so when this happens.

The imported bitmap is placed centered on the current viewport on the active layer. Bitmaps select, move, rotate, scale, and mirror like any other shape; the Properties panel exposes umPerPx, rotation, and reflect. Bitmaps participate in snap / measure / hit-tests so they're a usable tracing target — they just don't survive a real .gds save.

Align by landmarks (Properties panel, with a bitmap selected)

Typing umPerPx by hand at import time only works when you already know the exact scale. A scanned or screenshotted reference usually doesn't — so the Properties panel's Align by landmarks… button solves scale, rotation, and position for you instead, from two reference points rather than one typed number:

  1. Click Align by landmarks…, then click a landmark point on the bitmap image itself (Glyph tells you if the click misses the image).
  2. Click the matching real-world location for that same landmark — an ordinary, OSNAP-augmented click.
  3. Repeat for a second, distinct landmark pair (four clicks total). Esc cancels at any point.

From the two (image point, world point) pairs Glyph solves the exact translate + rotate + uniform-scale transform that maps one onto the other, and writes the result straight into the bitmap's origin, umPerPx, and rotation — one undo step.

The manual µm per pixel field is still there as the fallback for when you already know the scale, or the image has no two distinct features worth clicking.

Trace bitmap → polygons (Edit → Trace bitmap…)

Select a single bitmap, then Edit → Trace bitmap…. Four modes:

Mode What it produces
Cutoff One band: pixels darker (or lighter, with Invert) than the threshold become filled polygons. Best for clean black-on-white art.
Steps N gray bands (N = "Levels"). Each band is a closed contour at a luminance step. Use for posterized images or topo-style stack-ups.
Edges Marching-squares contour on the image gradient. Good for line art where outlines matter more than fill.
Colors Median-cut clustering into N color bands, each becoming a separate set of polygons. Use to recover a multi-layer mask from a colored reference.

Shared knobs:

The dialog renders a live preview overlay so you can tune knobs before committing. Pressing Apply replaces nothing — the polygons are added to the active cell as a new selection, leaving the source bitmap in place so you can re-trace with different settings. Delete the bitmap manually when you're done.


Updated 2026-09-04

Open Glyph — free, no install Your files never leave your computer.
Open Glyph →