Units & Conversion 8 entries
document units and conversion
Entries in this section
- doc.UnitThe current document unit (cdrUnit enum). Every geometry API follows it: page width and he
- doc.Unit = cdrMillimeterSwitch to millimetres and you can write millimetres directly instead of dividing by 25.4 e
- Font size: points vs document unitsThe one measurement that ignores doc.Unit: the size argument of CreateArtisticText and Tex
- 1 inch = 25.4 mm = 72 pt = 96 pxThe conversion basis. 1490/25.4 in the code converts 1490 mm to inches, which tells you do
- page.SizeWidth * page.SizeHeightPage area in square units. Use it as the denominator when you ask what fraction of the pag
- shape.GetBoundingBox() → w*hBounding box area, for overlap tests like "are these two G's the same one": overlap area /
- shape.Curve.Area / shape.Curve.LengthTrue area and perimeter. Curve objects only.
- RectIntersect: computing intersection areaOverlap of two rectangles: max(0, min(x1+w1, x2+w2) - max(x1, x2)) * max(0, min(y1+h1, y2+
Getting StartedConnection & InitApplicationDocumentPageLayer & ShapesGeometry & TransformGroup / Order / BooleanShape AppearanceTextTextRangeFillOutlinePowerClipFountain FillPattern / Texture FillTransparency & BlendEffectsColorCurve & NodeBitmapFind & TraverseUnits & ConversionImport / ExportEnumerationsObject DataAlign / DistributeLayer AdvancedView & PerformanceEventsRecipesPitfalls