Developer

TNxFillMode

Type used to specify how image will occupy available space inside rectangular space (e.g. cell, item).

Unit: NxTypes6.pas

TNxFillMode = (fmAspectFit, fmAspectFill, fmScaleToFill);



Values
ValueMeaning
fmAspectFitResize image inside cell, but keep aspect ratio (ratio between vertical and horizontal size).
fmAspectFillCenter image inside cell, without resizing (even if image size is larger than cell).
fmScaleToFillScale image to the cell size (calls StretchDraw method of TCanvas).

See also