// Resize the image to width of 50 (with height automatically set) without any smoothing algorithm ImageEnView1.Proc.Resample( 50, -1, rfNone );
// Resize the image to height of 100 (with width automatically calculated) and high quality smoothing ImageEnView1.Proc.Resample( -1, 100, rfLanczos3 );
// Resize the image so that it is no higher or wider than 100, but maintains the original aspect ratio (e.g. a 4:3 portrait image would have the new dimensions 100 x 75) ImageEnView1.Proc.Resample( 100, 100, rfLanczos3, True );
// Resize the image to half its current size with fast, but good quality smoothing ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );