ImageEn, unit ievect

TImageEnVect

TImageEnVect


Description


TImageEnVect inherits from TImageEnView (has all its method and properties), and handles editing of vectorial objects.

TImageEnVect encapsulates a TImageEnProc (Proc property) component for image editing/processing and a TImageEnIO (IO property) (you do not need to add extra TImageEnIO and TImageEnProc components to your form). 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, read TImageEnVect vs TIELayers.


Demo


  Demos\VectorEditor\Vectorial\Demo.dpr



Methods and Properties


Display
  AllObjectsHidden
  BitmapResampleFilter
  ObjAntialias
  ObjectsExtents
  ObjEnableFastDrawing
  ObjGraphicRender
  ZoomObjectsWidth


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


Accessing Objects
  GetObjFromID
  GetObjFromIndex
  GetObjFromName
  ObjectsCount


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


Rendering and Copying
  CopyAllObjectsTo
  CopyAllLayersFrom
  CopyObjectsToBack
  CopyObjectToBack
  CopyObjectTo
  DrawObjectsToBitmap
  DrawOneObjectToBitmap


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


Clipboard
  ObjCopyToClipboard
  ObjCutToClipboard
  ObjIsClipboardAvailable
  ObjPasteFromClipboard


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


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


Grips
  ObjGripBrush
  ObjGripImage
  ObjGripPen
  ObjGripShape
  ObjGripSize


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


Undo/Redo
  ObjAutoUndo
  ObjCanUndo
  ObjClearAllUndo
  ObjClearUndo
  ObjSaveUndo
  ObjUndo
  ObjUndoAt
  ObjUndoCount
  ObjUndoLimit
  ObjUndoMode


Others
  LayersRemove
  InsertingPen
  ShareBitmaps



Events


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