DBPix Documentation
Version 2.0

ImageResampleMode Property


Description:  Controls if (and how) images are resampled (resized) when loading a new image.
Type:  Number (enum/short)
Read/Get
Write/Set:
  
 
 
Remarks:  

This configuration property determines how images are resized when they are stored.
If you select a mode which resizes the image (ImageResampleModeControl or ImageResampleModeFixed) then the image will be resized to fit within the relevant area; i.e. the aspect ratio (width to height) will be maintained. 
If the image is 24-bit color or greater then it will be resampled using bi-cubic interpolation.  This technique eliminates jagged edges, or 'staircases' that can result from normal resizing. 


ConstantValueDescription
ImageResampleModeControl0Resizes/resamples the image to the size of the DBPix control.
ImageResampleModeOriginal1Leaves the image at it's original size (default).
ImageResampleModeFixed2Resizes/resamples the image to the size specified by the ImageResampleWidth and ImageResampleHeight properties.

If you do not resample images when they are loaded, and wish to store JPEG images without adjusting the compression (i.e. store the image unmodified and losslessly) ensure that the JPEGNoRecompress property is set to 'True'.

 

 

Documentation version 2.0.0