ImageEn, unit ievect

TImageEnVect


Declaration

TImageEnVect = class(TImageEnView);


Description

TImageEnVect inherits from TImageEnView (has all its method and properties), to allow editing of vectorial objects.
It encapsulates a TImageEnProc (Proc property) component for image editing/processing and a TImageEnIO (IO property). However for loading and saving of vector objects you should use the custom TImageEnVect functions for this.

For rapid UI development a full set of actions is also available.

Note: For new implementations you should use the layer functionality, which supports almost all of the functionality of TImageEnVect, but with better performance and other improvements. To learn more about transitioning your code to TIELayers, see TImageEnVect vs TIELayers.


Demo

Demo  Demos\XLegacy_Demos\VectorEditor\Vectorial\Demo.dpr

Methods and Properties


Display
Public Property  AllObjectsHidden
Published Property  BitmapResampleFilter
Published Property  ObjAntialias
Public Property  ObjectsExtents
Public Property  ObjEnableFastDrawing
Public Property  ObjGraphicRender
Published Property  ZoomObjectsWidth

User Interaction
Public Property  AllowOutOfBitmapMoving
Public Property  AllowOutOfBitmapPolylines
Public Method  CancelInteracts
Public Property  CenterNewObjects
Public Property  EnableRangeObjectsSelection
Public Method  FindObjectAt
Public Method  IsEditMode
Public Property  MaxMovingDistance
Published Property  MouseInteractVt
Public Property  ObjEditOnNewText
Public Property  PolylineClosingMode
Public Property  PolylineEndingMode
Published Property  SelectOnMouseDown
Public Property  UseCentralGrip

Accessing Objects
Public Method  GetObjFromID
Public Method  GetObjFromIndex
Public Method  GetObjFromName
Public Property  ObjectsCount

Editing Objects
Public Method  AddNewObject
Public Method  AddPolyLinePoint
Public Method  AlignObjects
Public Method  CreateImageFromSelectedArea
Public Method  CreatePolygonFromEdge
Public Method  CreatePolygonsFromSelection
Public Method  GetIndexFromObj
Public Method  GetMemoFormattedString
Public Method  GetObjRect
Public Property  MaxTextLength
Public Property  MemoEdit
Public Method  MemoEditingGetCharInfo
Public Method  MemoEditingSetCharInfo
Public Method  ObjSetTBitmap
Public Property  ObjTextEditMode
Public Method  RemoveAllObjects
Public Method  RemoveObject
Public Method  RemovePolygonJaggedEdges
Public Method  RemovePolyLinePoint
Public Method  RotateAllObjects
Public Method  RotateObject
Public Method  SetObjAnglePoints
Public Method  SetObjBackTo
Public Method  SetObjBitmapICO
Public Method  SetObjFont
Public Method  SetObjFrontOf
Public Method  SetObjPolylinePoints
Public Method  SetObjRect
Public Method  SetObjTextCurve
Public Method  SetObjTextCurveFromPolyline
Public Method  SetObjTextCurveShape
Public Method  SimplifyPolygon
Public Method  StretchTextRect

Rendering and Copying
Public Method  CopyAllObjectsTo
Public Method  CopyAllLayersFrom
Public Method  CopyObjectsToBack
Public Method  CopyObjectToBack
Public Method  CopyObjectTo
Public Method  DrawObjectsToBitmap
Public Method  DrawOneObjectToBitmap

Input/Output
Public Method  ImportDXF
Public Method  LoadFromFileAll
Public Method  LoadFromFileIEV
Public Method  LoadFromStreamAll
Public Method  LoadFromStreamIEV
Public Method  LoadObjectsFromTIFF
Public Method  SaveObjectsToTIFF
Public Method  SaveToFileAll
Public Method  SaveToFileIEV
Public Method  SaveToStreamAll
Public Method  SaveToStreamIEV
Public Method  SetObjBitmapFromFile
Public Method  SetObjBitmapFromStream

Clipboard
Public Method  ObjCopyToClipboard
Public Method  ObjCutToClipboard
Public Method  ObjIsClipboardAvailable
Public Method  ObjPasteFromClipboard

Object Properties
Public Property  ObjAnchorToLayers
Public Property  ObjAngleShowSmall
Public Property  ObjAnglePoints
Public Property  ObjArcEndingAngle
Public Property  ObjArcStartingAngle
Public Property  ObjAspectRatio
Public Property  ObjBeginShape
Public Property  ObjBitmapAlpha
Public Property  ObjBitmapBorder
Public Property  ObjBitmap
Public Property  ObjBlendOperation
Public Property  ObjBottom
Public Property  ObjBoxHighLight
Public Property  ObjBoxInnerSelectable
Public Property  ObjBrushColor
Public Property  ObjBrushStyle
Public Property  ObjEndShape
Public Property  ObjFontAngle
Public Property  ObjFontHeight
Public Property  ObjFontLocked
Public Property  ObjFontName
Public Property  ObjFontStyles
Public Property  ObjFontQuality
Public Property  ObjGroupIndex
Public Property  ObjHeight
Public Property  ObjID
Public Method  ObjIsVisible
Public Property  ObjKind
Public Property  ObjLabelBorder
Public Property  ObjLabelBrushColor
Public Property  ObjLabelBrushStyle
Public Property  ObjLabelPosition
Public Property  ObjLayer
Public Property  ObjLeft
Public Property  ObjMemoBorderColor
Public Property  ObjMemoBorderStyle
Public Property  ObjMemoCharsBrushStyle
Public Property  ObjMemoFixedHeight
Public Property  ObjMemoHasBitmap
Public Property  ObjMemoLineSpace
Public Property  ObjMemoMarginBottom
Public Property  ObjMemoMarginLeft
Public Property  ObjMemoMarginRight
Public Property  ObjMemoMarginTop
Public Property  ObjName
Public Property  ObjPenColor
Public Property  ObjPenStyle
Public Property  ObjPenWidth
Public Property  ObjPolylineClosed
Public Property  ObjPolylinePointsCount
Public Property  ObjPolylinePoints
Public Property  ObjRight
Public Property  ObjRulerQuoteHorizon
Public Property  ObjRulerType
Public Property  ObjRulerUnit
Public Property  ObjShapeHeight
Public Property  ObjShapeWidth
Public Property  ObjSoftShadow
Public Property  ObjStyle
Public Property  ObjTextAlign
Public Property  ObjTextAutoSize
Public Property  ObjTextCurveCharRot
Public Property  ObjTextEditable
Public Property  ObjTextMaintainAlignmentOnRotate
Public Property  ObjText
Public Property  ObjTop
Public Property  ObjTransparency
Public Property  ObjUserDataLength
Public Property  ObjUserData
Public Property  ObjWidth

Measurement
Published Property  FloatDigits
Published Property  FloatPrecision
Public Method  GetAngleValue
Public Method  GetObjDiagLen
Public Method  GetPolylineArea
Public Method  GetPolylineCentroid
Public Method  GetPolylineLen
Public Method  GetSelectionArea
Public Method  GetSelectionCentroid
Public Method  GetSelectionLen
Public Property  MeasureCoefX
Public Property  MeasureCoefY
Public Property  MeasureHintBorder1
Public Property  MeasureHintBorder2
Public Property  MeasureHintBrush
Public Property  MeasureHintFont
Public Property  MeasureTrack
Published Property  MUnit
Public Property  ScaleFactor
Public Method  SetScaleFromPixels
Public Method  SetScaleFromSelectionLen

Grips
Public Property  ObjGripBrush
Published Property  ObjGripImage
Public Property  ObjGripPen
Public Property  ObjGripShape
Public Property  ObjGripSize

Selection
Public Method  AddSelObject
Public Method  CopySelectedObjectsTo
Public Method  GroupObjects
Public Method  IsSelObject
Public Property  MaxSelectionDistance
Public Method  SelAllObjects
Public Property  SelObjects
Public Property  SelObjectsCount
Public Method  UnSelAllObjects
Public Method  UnSelObject
Public Method  UngroupObjects

Undo/Redo
Published Property  ObjAutoUndo
Public Property  ObjCanUndo
Public Method  ObjClearAllUndo
Public Method  ObjClearUndo
Public Method  ObjSaveUndo
Public Method  ObjUndo
Public Method  ObjUndoAt
Public Property  ObjUndoCount
Published Property  ObjUndoLimit
Published Property  ObjUndoMode

Other
Public Method  Assign
Public Property  InsertingPen
Published Property  ShareBitmaps

Events
Event  OnActivateTextEdit
Event  OnAfterDrawObject
Event  OnBeforeDrawObject
Event  OnBeforeVectorialChanged
Event  OnDeactivateTextEdit
Event  OnDragLenEnd
Event  OnMeasureHint
Event  OnNewObject
Event  OnObjectClick
Event  OnObjectDblClick
Event  OnObjectMoveResize
Event  OnObjectOver
Event  OnPresentMeasure
Event  OnSelectObject
Event  OnTextEdit
Event  OnTextEditCursorMoved
Event  OnTextKeyDown
Event  OnUserDeselectObject
Event  OnUserSelectObject
Event  OnVectorialChanged