Explainer

SVG viewBox, path geometry, even-odd fill rules, and crisp PNG rasterization explained

How the SVG coordinate grid decouples artboard size from screen pixels, how even-odd paths punch clean transparent holes, and how vector shapes rasterize cleanly to transparent PNG.

By Max-Q Studio Team7 min read

Scalable Vector Graphics (SVG) files stay sharp on a 24-pixel toolbar button and a 3-metre banner because they store mathematical shapes rather than a fixed grid of colored squares. Yet designers and developers frequently run into puzzling SVG issues: icons exporting with unexpected whitespace, transparent holes disappearing when filled, or PNG exports looking fuzzy at small sizes. Understanding how viewBox coordinates, construction geometry,even-odd fill rules, and raster export work inside Vector Studio gives you predictable, production-ready artwork.

1. How the SVG viewBox coordinate system works

Every SVG canvas declares a logical coordinate rectangle via viewBox="minX minY width height". InVector Studio, the main drawing sheet uses a 900 x 600 unit coordinate space where (0, 0) is the top-left corner and (900, 600) is the bottom-right corner. Because SVG coordinates are dimensionless units, a circle drawn with center (450, 300) and radius 150scales cleanly whether rendered inside a 32 px browser favicon or printed at 300 DPI.

When you export Selection instead of the full Canvas, Vector Studio computes the tight bounding box around your selected shapes (including stroke width) and writes a trimmed viewBox. That removes unwanted empty margins around logos and icons automatically so CSS layout aligns your mark flush with text.

2. Construction lines vs filled regions (even-odd cutouts)

Many geometric logos are built by intersecting simple primitives: a circle cutting a notch out of a square, or two concentric rings forming a camera lens. Instead of wrestling with complex manual Bezier handles,Vector Studio separates drafting into two clean layers:

Layer / conceptHow it works mathematicallyWhy it simplifies icon design
Construction shapesExact lines, rectangles, squares, ellipses, circles, polygons, and freehand paths with numeric X, Y, W, H, and angleLets you align shapes with Smart Grid, Snap, and exact gap measurements before committing fills
Select Area (planar regions)Splits overlapping construction edges into enclosed faces and detects nested holes using fill-rule="evenodd"Turns overlapping circles and squares into true transparent cutouts with a single click
Round Corner radiusReplaces sharp polygon vertices with tangent circular arcs clamped safely to half the shortest adjacent edgeProduces consistent, smooth rounded corners without distorting straight segments
Editable JSON projectSerializes every construction shape, finished region, color, and angle into a portable .maxq-vector.json fileAllows you to reopen and tweak exact dimensions weeks later without losing construction geometry

3. Exporting clean SVG vs transparent PNG

Vector Studio lets you export both scalable SVG and transparent PNG directly from the canvas toolbar:

  • Use SVG for web UI, codebases, and print: SVG files stay tiny (often under 3 KB for icons), scale infinitely, and can be styled or recolored later.
  • Use PNG for chat apps, social avatars, and slide decks: Many apps still reject raw SVG uploads. When you pick PNG, the browser renders your vector DOM onto an offscreen HTML Canvas with alpha transparency preserved (no white box behind your logo unless you explicitly filled one).
  • Strip construction lines before final export: Keep construction guides visible while drafting, then toggle them off or click Remove all construction once your finished filled regions look right.

4. Precision workflow tips for balanced marks

  • Align on a consistent grid step: Switching Grid step to 10 or 20 units and enabling Snap ensures stroke edges land cleanly on integer coordinates.
  • Measure spacing with Ctrl-click: Holding Ctrl while selecting two shapes displays exact horizontal and vertical gaps plus alignment feedback, making symmetrical icons effortless.
  • Save your native project file alongside SVG: Always click Save Project after finishing a logo so you keep editable construction lines for future variants.

Want to see real icons built with this exact geometry workflow? Read our case studyOne drawing, two logos in Vector Studio, or openVector Studio to start drawing directly in your browser.

About this guide: Written and tested by the Max-Q Studio engineering team against the real tools running on maxq.tools. Spotted something outdated or unclear? Let us know · Our editorial standards

File exceeds the size limit

Images: Max 10 MB per file. PDFs: Max 20 MB per file.