ImageEn, unit iexBitmaps

TIEBitmap


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.Read( 'D:\input.bmp' );
bmp.Write( 'D:\output.jpg' );
bmp.Free;

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



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  FreeImage
Public Method  FixChannelOffset
Public Method  FixContrast
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  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  DrawToTIEBitmap
Public Property  EncapsulatedFromMemory
Public Property  EncapsulatedFromTBitmap
Public Method  EncapsulateMemory
Public Method  EncapsulateTBitmap
Public Method  MergeFromTDibBitmap
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 (inherited from TIEBaseBitmap)
Public Method  CalcRAWSize
Public Method  CopyToClipboard
Public Property  Filename
Public Method  GetHash
Public Method  LoadFromResource
Public Method  LoadRAWFromBufferOrStream
Public Property  ParamsEnabled
Public Property  Params
Public Method  PasteFromClipboard
Public Method  Read (Load from file/stream)
Public Method  SaveRAWToBufferOrStream
Public Property  WicFastLoading
Public Method  Write (Save to file/stream)

Canvas Access
Public Property  IECanvas
Public Property  Canvas
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  CanvasCurrentAlpha
Public Method  CropAlpha
Public Method  DetachAlphaChannel
Public Method  DrawToCanvasWithAlpha
Public Method  FeatherAlphaEdges
Public Property  HasAlphaChannel
Public Property  IsAlpha
Public Method  MergeAlphaRectTo
Public Method  MergeWithAlpha
Public Method  RemoveAlphaChannel
Public Method  RenderToCanvasWithAlpha
Public Method  ReplaceAlphaChannel
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 Property  Palette (inherited from TIEBaseBitmap)
Public Property  PaletteLength (inherited from TIEBaseBitmap)
Public Property  PaletteUsed (inherited from TIEBaseBitmap)
Public Method  AutoCalcBWValues
Public Property  BlackValue
Public Property  ChannelCount
Public Property  ChannelOffset
Public Property  ColorProfile
Public Method  CopyPaletteTo
Public Property  DefaultDitherMethod
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 Manipulation
Public Method  Crop
Public Method  Flip
Public Method  Normalize
Public Method  Resample
Public Method  Rotate

IEVision related
Public Method  GetIEVisionImage
Public Method  AssignIEVisionImage

Events
Event  OnChanged
Event  OnProgress
Event  OnRenderVirtualPixel



See Also

- TIEDBBitmap