ImageEn, unit imageenproc

TImageEnProc

TImageEnProc


Description


TImageEnProc provides image processing and analysis functionality to the TImageEnView, TImageEnDBView, TIEBitmap, TImage or TBitmap component. It also handles clipboard operations, undo/redo and encryption.

Note: TImageEnView already encapsulates TImageEnProc (as Proc), so you don't generally need to add a TImageEnProc component to a form.


Examples


// Prompt to perform color adjustment on the current image
ImageEnView1.Proc.DoPreviews( ppeColorAdjustments );




// Prompt to perform image effects on the current image
ImageEnView1.Proc.DoPreviews( ppeSpecialEffects );




// Prompt to edit the current image
ImageEnView1.Proc.DoPreviews( ppeSpecialEffects );




// Rotate an image in a TImageEnView 90 clockwise
ImageEnView1.Proc.Rotate(270);

// Reduce the size of an image in a TImageEnView to half its size (so when saved it will be much smaller on disk)
ImageEnView1.Proc.Resample(ImageEnView1.IEBitmap.Width div 2, -1, rfLanczos3);

// Prompt the user to perform image effects on an image in a TImage
ImageEnView1.Proc.AttachedBitmap := Image1.Picture.Bitmap;
ImageEnView1.Proc.DoPreviews([peAll]);

// Load an image with a TIEBitmap, make it negative then save it
iebmp := TIEBitmap.Create;
ImageEnProc := TImageEnProc.create(nil);
ImageEnProc.AttachedIEBitmap := iebmp;
iebmp.Read('animage.tif');
ImageEnProc.Negative;
iebmp.Write('output.tif');
ImageEnProc.Free;
iebmp.Free;


Methods and Properties


Connected Component
  AttachedBitmap
  AttachedIEBitmap
  AttachedImageEn
  AttachedTImage


Dialogs
  DoPreviews
  IPDialogParams
  PreviewFont
  PreviewFontEnabled
  PreviewsLog
  PreviewsParams


Shadows
  AddInnerShadow
  AddSoftShadow (and Glow)


Fourier Analysis (FFT)
  FTClearZone
  FTConvertFrom
  FTCreateImage
  FTDisplayFrom


Paint
  CastColor (Flood Fill)
  ClearSel
  Clear
  Fill
  GradientFill
  PaintMark
  PaintPenMarker


Alpha Channel
  AlphaFill
  CastAlpha
  FeatherAlphaEdges
  SetTransparentColors


Chroma Key
  GuessChromaKeyColor
  RemoveChromaKey


Analysis
  CalcAverageRGB
  CalcDensityHistogram
  CalcImageNumColors
  CalcImagePalette
  CalcOrientation
  CalcStdDev
  CompareWith
  CompareHistogramWith
  ComputeImageEquality
  GetDominantColor
  GetHistogram
  GetHSVChannelAll
  GetHSVChannel
  GetRGBChannelAll
  GetRGBChannel
  SeparateObjects


Custom Image Analysis
  BeginImageAnalysis
  EndImageAnalysis


Custom Image Processing
  BeginImageProcessing
  EndImageProcessing


Automatic Image Enhancement
  AdjustGainOffset
  AutoImageEnhance1
  AutoImageEnhance2
  AutoImageEnhance3
  AutoSharp
  HistAutoEqualize
  WhiteBalance_AutoWhite
  WhiteBalance_GrayWorld


Color Adjustment
  AdjustBrightnessContrastSaturation
  AdjustLumSatHistogram
  AdjustSaturation
  AdjustTemperature
  AdjustTint
  CastColorRange
  Closing
  Colorize
  Contrast
  Contrast2
  Contrast3
  ConvertTo24Bit
  ConvertToBW_FloydSteinberg
  ConvertToBWLocalThreshold
  ConvertToBWOrdered
  ConvertToBWThreshold
  ConvertToGray
  ConvertToPalette
  ConvertToSepia
  ConvertTo
  DisposeChannels
  Deinterlace
  EdgeDetect_ShenCastan
  EdgeDetect_Sobel
  GammaCorrect
  HistEqualize
  HSLvar
  HSVvar
  IntensityRGBAll
  Intensity
  MapGrayToColor
  Maximum
  MedianFilter
  MatchHSVRange
  Minimum
  Negative
  Opening
  Random
  Threshold
  Threshold2
  WallisFilter
  WhiteBalance_coef
  WhiteBalance_WhiteAt


Pixel Adjustment
  ApplyFilterPreset
  ApplyFilter
  Blur
  BumpMapping
  Convolve
  FiltersInitialDir
  Lens
  Merge
  MotionBlur
  RemoveRedEyes
  Pixelize
  PencilSketch
  Sharpen
  SymmetricNearestNeighbour
  UnsharpMask
  Wave


Noise
  RemoveIsolatedPixels
  RemoveNoise


Clipboard
  CanCutToClipboard
  CutToClipboard
  CanCopyToClipboard
  CopyToClipboard
  CanPasteFromClipboard
  PasteFromClipboard
  PointPasteFromClip


Steganography
  ClearHiddenText
  GetHiddenDataSpace
  ReadHiddenData
  ReadHiddenText
  WriteHiddenData
  WriteHiddenText


Encryption
  Decrypt
  Encrypt


Geometric (Rotate, resize, crop, etc)
  AutoCrop
  AutoCrop2
  CropTransparentBorder
  CropSel
  Crop
  Flip
  ImageResize
  MakeTile
  PerspectiveDraw
  ProjectDraw
  RadialStretch
  Reflection
  Resample
  ResampleTo
  Rotate
  RotateAndCrop
  RoundImage
  ShiftChannel
  SkewDetectionFine
  SkewDetection


Undo
  AutoUndo
  CanUndo
  ClearAllUndo
  ClearUndoAt
  ClearUndo
  GetUndoInfo
  SaveUndo
  Undo
  UndoAt
  UndoCaptions
  UndoCount
  UndoLimit
  UndoLocation
  UndoRect


Redo
  CanRedo
  ClearAllRedo
  ClearRedo
  ClearRedoAt
  GetRedoInfo
  Redo
  RedoAt
  RedoCaptions
  RedoCount
  SaveRedo


Transitions
  PrepareTransitionBitmaps
  PrepareTransitionBitmapsEx
  CreateTransitionBitmap


Others
  AutoConvertFormat
  Background
  Create
  CreateFromBitmap
  GetReSel
  ImageEnVersion
  Selected
  SelectedRect
  TextOut
  Update



Events


  OnFinishWork
  OnPreview
  OnProgress
  OnSaveUndo