Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Resamplers🞂TDraftResamplerClass

TDraftResampler

Draft box-averaging resampler for fast downscaling previews.

Inheritance:TObject 🞂 TPersistent 🞂 TNotifiablePersistent 🞂 TCustomSampler 🞂 TCustomResampler 🞂 TLinearResampler 🞂 TDraftResampler

Declaration ​

pascal
TDraftResampler = class(TLinearResampler)

Description ​

TDraftResampler optimizes bitmap downscaling by averaging source pixel blocks, falling back to TLinearResampler when upscaling.

The downscaling result is better than nearest neighbor interpolation, but not quite as good as linear resampling.

TIP

Downsampling with TDraftResampler is commonly used for fast generation of low quality thumbnail images.

It can also be used to provide a quick temporary preview result during interactive resampling.