ImageEn, unit iexBitmaps

TIEBitmap

Properties · Methods · Events · Examples

Declaration

TIEBitmap = TIEBaseBitmap;


Description

TIEBitmap is a replacement for the VCL TBitmap class. It has many methods and properties compatible with TBitmap and enhances it by supporting multi-threading, large images and a wide range of image formats.
TIEBitmap can store images in memory mapped files (for big images), in memory (fast access) or can encapsulate TBitmap objects (for canvas drawing and compatibility).


Examples

// Convert a BMP to a JPEG
bmp := TIEBitmap.create;
bmp.LoadFromFile( 'D:\input.bmp' );
bmp.SaveToFile( 'D:\output.jpg' );
bmp.Free;

// Convert a BMP to a JPEG at 90% quality
bmp := TIEBitmap.create;
bmp.ParamsEnabled := True;
bmp.LoadFromFile( 'D:\input.bmp' );
bmp.Params.JPEG_Quality := 90;
bmp.SaveToFile( 'D:\output.jpg' );
bmp.Free;


Debugging Visualizer

You can view the content of a TIEBitmap while debugging by hovering over the object and clicking the Inspect button:


Methods and Properties


General
Public Method  AdjustmentsMask
Public Method  Allocate
Public Property  BitAlignment
Public Property  BitCount
Public Property  Clear
Public Property  Contrast
Public Method  Create
Public Method  CreateDIB
Public Method  CreateROIBitmap (Bitmap of an area)
Public Method  CreateROICanvas (Canvas of an area)
Public Method  Destroy
Public Method  Equals
Public Method  FillWithShape
Public Method  FixContrast
Public Method  FreeImage
Public Property  Height
Public Method  IsEmpty
Public Property  IsVirtual
Public Property  Location
Public Property  MemoryAllocator
Public Property  MinFileSize
Public Property  Modified
Public Property  Origin
Public Property  PixelFormat
Public Method  Resize
Public Property  VclBitmap
Public Property  Width

Assignment between Objects
Public Method  AddToImageList
Public Method  Assign
Public Method  AssignTo
Public Method  AssignIEVisionImage
Public Method  AssignImage
Public Method  AssignRect
Public Method  CopyAndConvertFormat
Public Method  CopyFromDIB
Public Method  CopyFromMemory
Public Method  CopyFromTBitmap
Public Method  CopyFromTDibBitmap
Public Method  CopyFromTIEMask
Public Method  CopyRectTo
Public Method  CopyToTBitmap
Public Method  CopyToTDibBitmap
Public Method  CopyToTIEMask
Public Method  CopyWithMask1
Public Method  CopyWithMask2
Public Method  DrawToCanvasWithAlpha
Public Method  DrawToTIEBitmap
Public Property  EncapsulatedFromMemory
Public Property  EncapsulatedFromTBitmap
Public Method  EncapsulateMemory
Public Method  EncapsulateTBitmap
Public Method  GetIEVisionImage
Public Method  JoinBitmaps
Public Method  MergeAlphaRectTo
Public Method  MergeWithAlpha
Public Method  MergeFromTDibBitmap
Public Method  RenderToCanvasWithAlpha
Public Method  RenderToTBitmapEx
Public Method  RenderToTIEBitmapEx
Public Method  RestoreState
Public Method  SaveState
Public Method  StretchRectTo
Public Method  SwitchTo
Public Method  UpdateFromTBitmap

Input/Output
Public Property  Access
Public Property  AsBase64
Public Method  CalcRawSize
Public Method  CopyToClipboard
Public Method  LoadFromFile
Public Method  LoadFromStream
Public Method  LoadFromBuffer
Public Property  Filename
Public Method  GetHash
Public Method  LoadFromResource
Public Method  LoadRawFromBufferOrStream
Public Property  ParamsEnabled
Public Property  Params
Public Method  PasteFromClipboard
Public Method  SaveRawToBufferOrStream
Public Method  SaveToFile
Public Method  SaveToStream
Public Property  WicFastLoading

Canvas Access
Public Property  IECanvas
Public Property  Canvas
Public Property  CanvasCurrentAlpha
Public Method  DrawToCanvas
Public Method  Fill
Public Method  FillRect
Public Method  GradientFill
Public Method  GradientFillRect
Public Method  MoveRegion
Public Method  RenderToCanvas

Alpha Channel (Transparency)
Public Property  Alpha
Public Property  AlphaChannel
Public Property  AlphaChannelOpt
Public Method  AlphaFill
Public Method  AlphaFillRect
Public Property  AlphaLocation
Public Method  CropAlpha
Public Method  DetachAlphaChannel
Public Method  FeatherAlphaEdges
Public Method  HasAlphaChannel
Public Property  IsAlpha
Public Method  RemoveAlphaChannel
Public Method  ReplaceAlphaChannel
Public Method  SetColorFromAlpha
Public Method  SetTransparentColors
Public Method  SyncAlphaChannel
Public Method  SynchronizeRGBA

Pixel Access
Public Method  FreeRow
Public Method  GetRow
Public Method  GetSegment
Public Property  Memory
Public Property  Pixels_ie16g
Public Property  Pixels_ie1g
Public Property  Pixels_ie24RGB
Public Property  Pixels_ie32f
Public Property  Pixels_ie32RGB
Public Property  Pixels_ie48RGB
Public Property  Pixels_ie8
Public Property  Pixels_ieCIELab
Public Property  Pixels_ieCMYK
Public Property  Pixels
Public Property  PPixels_ie24RGB
Public Property  PPixels_ie32RGB
Public Property  PPixels_ie48RGB
Public Property  Rowlen
Public Property  ScanLine
Public Property  TBitmapScanlines
Public Property  VirtualBitmapProvider

Palette and Color
Public Method  AssignColorMap
Public Property  Palette
Public Property  PaletteLength
Public Property  PaletteUsed
Public Method  AutoCalcBWValues
Public Property  BlackValue
Public Property  ChannelCount
Public Property  ChannelOffset
Public Property  ColorProfile
Public Method  ConvertToGray
Public Method  CopyPaletteTo
Public Property  DefaultDitherMethod
Public Method  FixChannelOffset
Public Property  Full
Public Method  IsBlank
Public Method  IsAllBlack
Public Method  IsGrayScale
Public Method  Negative
Public Method  StretchValues
Public Method  SyncFull
Public Property  WhiteValue

Image Editing
Public Method  AutoCrop
Public Method  Crop
Public Property  EffectsChain
Public Method  Flip
Public Method  Normalize
Public Method  Resample
Public Method  Rotate

Events
Event  OnChanged
Event  OnProgress
Event  OnRenderVirtualPixel


See Also

TIEDBBitmap
TIEMultiBitmap