RadBinaryImage can automatically resize your image when required. It supports 3 different resize modes, specified by the ResizeMode
property:
-
Crop - the image is cropped based on the specified control Width and Height. The
CropPosition
property determines the position of the cropping rectangle. The image is cropped only when the specified control Width and Height are smaller than the original image dimensions.
-
Fit - the image is fitted to the specified control Width and Height. Original image proportions are preserved. This setting allows your images to resize optimally based on a specified maximum width and height, while still preserving the original image proportions for best view.
-
Fill - the image is stretched or shrunk exactly to the specified control Width and Height. No proportions are preserved with this setting.
The default value of the ResizeMode
property is None
, meaning no resizing will be applied to the original image.
Note: All resizing settings require that both Width and Height is specified in RadBinaryImage. Omitting to specify any of these two properties will prevent image resizing.