Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TCustomResamplerClass

TCustomResampler

Abstract base class for pixel resampling and filtering algorithms attached to TBitmap32.

Inheritance:TObject 🞂 TPersistent 🞂 TPlainInterfacedPersistent 🞂 TNotifiablePersistent 🞂 TCustomSampler 🞂 TCustomResampler

Declaration ​

pascal
type
  TCustomResampler = class(TCustomSampler)
    ...
  TCustomResamplerClass = class of TCustomResampler;

Description ​

TCustomResampler is the abstract base class for all bitmap resamplers in Graphics32. It inherits from TCustomSampler and adapts generic sub-pixel color sampling specifically for TCustomBitmap32 instances.

Resamplers provide spatial filtering and interpolation algorithms (such as Nearest Neighbor, Linear, Cubic, or Kernel resamplers) used when stretching, transforming, or sampling bitmaps.

The Bitmap property associates the resampler with its source bitmap. The PixelAccessMode property controls out-of-bounds pixel sampling behavior (pamUnsafe, pamSafe, pamWrap, or pamTransparentEdge).