Layer & Shapes 14 entries
layers and shape creation
Entries in this section
- layer.CreateRectangle2(x, y, w, h)Draws a rectangle. (x, y) is the bottom-left corner; w and h are width and height. Units f
- layer.CreateRectangle(l, t, r, b)Rectangle from four edges. t (top) must be a larger number than b (bottom).
- layer.CreateEllipse2(x, y, w, h)Ellipse from bottom-left corner plus size. w == h gives a circle.
- layer.CreateEllipse(l, t, r, b)Ellipse from four edges.
- layer.CreateArtisticText(left, top, text, lang, charset, font, size, bold, italic, underline, align)Creates artistic text (a single-line heading). size is in points, not doc.Unit. align: 1 l
- layer.CreateParagraphText(left, top, right, bottom, text, lang, charset, font, size, bold, italic, underline, align)Creates paragraph text that wraps inside a box. Requirement: top > bottom. The code uses i
- layer.Import(path, filter, options)Imports an image, SVG or other external file. 0 means auto-detect the format; None means d
- layer.CreateCurve(...) / layer.CreateFreehandCurve(...)Builds a curve from an array of points. Used for procedural artwork (flowers, map outlines
- layer.Activate()Makes this the active layer.
- layer.NameLayer name, read/write. Batch template jobs look layers up by name.
- layer.Visible / .Printable / .EditableThree switches: visible, printable, editable. A handy pattern — put construction lines on
- layer.ShapesAll shapes on this layer.
- layer.Delete() / layer.MoveTo(page)Deletes the layer, or moves it to another page.
- layer.FindShapes(query, type, recursive)Layer-level search. The three calls worth memorizing: ("", 6, True) text, ("", 7, True) gr
Getting StartedConnection & InitApplicationDocumentPageLayer & ShapesGeometry & TransformGroup / Order / BooleanShape AppearanceTextTextRangeFillOutlinePowerClipFountain FillPattern / Texture FillTransparency & BlendEffectsColorCurve & NodeBitmapFind & TraverseUnits & ConversionImport / ExportEnumerationsObject DataAlign / DistributeLayer AdvancedView & PerformanceEventsRecipesPitfalls