enum

CrImage::Util::ThumbnailMode

Inherits Enum / Comparable / Value / Object

Thumbnail generation mode.

Controls how the image is resized to fit target dimensions:

  • Fit : Scale to fit within bounds, preserve aspect ratio (letterbox/pillarbox)
  • Fill : Scale to fill bounds completely, crop excess (no empty space)
  • Stretch : Stretch to exact dimensions, ignore aspect ratio

Constants

Fit = 0
Fill = 1
Stretch = 2

Instance methods

fill?

Returns true if this enum value equals Fill

Source
fit?

Returns true if this enum value equals Fit

Source
stretch?

Returns true if this enum value equals Stretch

Source