Files
vectorcraft/docs
dotCooCoo ca2c567f74 PICT: Export As writes QuickDraw pictures
File › Export As and document.export {format: "pict"} write a version 2
QuickDraw picture (.pct) of an artboard, or one per artboard with Use
Artboards, with the extended header at up to 16 device units a point.

- Fills are PaintPoly polygons. A path of several figures is one
  polygon that runs back along the line between its figures, so the
  even-odd fill QuickDraw gives polygons keeps its holes. Non-zero fills
  are first resolved into figures that don't overlap, and art is cut to
  the picture's frame so every coordinate fits 16 bits. A fill too
  complex to resolve is written as it is, with a warning.
- Strokes are written as their filled outlines (line_outline, with
  dashes, caps, joins and miter limit).
- Images are DirectBitsRect pixel maps in tiles of at most 1,024
  pixels, rows packed with PackBits, composited over white. Mirrored and
  quarter-turned images keep their placement, and an image reaching far
  past the frame keeps its columns in place.
- Clipping masks, gradients, patterns and transparency are written as
  WMF writes them, with the same warnings. Artboards over 32,767 points
  on a side are refused.

The writer follows the opcode tables of Inside Macintosh: Imaging With
QuickDraw, and the tests read every picture back through the PICT
reader.
2026-12-05 05:52:10 -08:00
..