CropXSize Property
Object List Next Object
Defined By: Image Control
Description:
Sets the width of the visible portion of the Bitmap (must be>=1). Used in
combination with CropYSize, CropYOffset, CropXOffset to define the CropRect.
Details:
The Image displays the given Bitmap according to the settings of the CropRect
properties (CropXOffset, CropYOffset, CropXSize, CropYSize). The CropRect
defines the portion of the Bitmap to display in the Image control. The CropRect
components are all measured in Pixels.
The rule used for displaying the Bitmap is to take the area of the Bitmap
defined by the CropRect and “fit” it into the Image control. That is, to stretch or shrink the CropRect as
needed so that the entire CropRect is visible in the Image control. If the CropRect
is bigger than the designated space in the Image control, the Bitmap will
appear to have shrunk to fit in the area available. If the CropRect is smaller than
the available space in the Image control, the Bitmap will expand (zoom) to fit
in the area available.
Data Type: Integer