enum

CrImage::Util::ResampleQuality

Inherits Enum / Comparable / Value / Object

Resampling quality level for thumbnail generation.

Different algorithms offer trade-offs between speed and quality:

  • Nearest : Fastest, pixelated results, good for pixel art
  • Bilinear : Fast, smooth results, good for most use cases
  • Bicubic : Slower, sharper results, good for photos
  • Lanczos : Slowest, highest quality, best for critical work

Constants

Nearest = 0
Bilinear = 1
Bicubic = 2
Lanczos = 3

Instance methods

bicubic?

Returns true if this enum value equals Bicubic

Source
bilinear?

Returns true if this enum value equals Bilinear

Source
lanczos?

Returns true if this enum value equals Lanczos

Source
nearest?

Returns true if this enum value equals Nearest

Source