Sets or gets the way in which a picture is sized in its container (form or control).
object.PictureSize = [value]
Where object is an object expression that evaluates to one of the controls in the Applies To list, and value is a value or constant as described in Settings.
Newlook Smartclient
Newlook Server
This property can be used in conjunction with the PictureAlignment property to specifiy how an image in the form or control is rendered when a form is resized.
The settings for value for the command button, form, frame, list view and picture box objects are :
Constant (Macros) |
Constant (Scripts) |
Value |
Example |
Description |
PicSizeClip |
nlPicSizeClip |
0 |
|
Crops any part of the image that is larger than the control. (Default) The way that the image is clipped depends on the value of the PictureAlignment property - in this example it is set to PicAlignCenter. |
PicSizeStretch |
nlPicSizeStretch |
1 |
|
Stretches the image to fill the control. This setting will distorts the picture in either the horizontal or vertical direction if necessary. |
PicSizeTile |
nlPicSizeTile |
3 |
|
Tiles the image to fill the control. The way that the image will be tiled is dependent on the value of the PictureTile property - in this examples it is set to PictureTileTexture. Note: The PictureTile property is |
PicSizeZoom |
nlPicSizeZoom |
2 |
|
Enlarges the image, but does not distort the picture in either the horizontal or vertical direction. |
DisabledPicture property | DownPicture property | HoverPicture property | Picture property | PictureAlignment property | PictureColor property | PictureOpacity property | PictureQuality property | PictureTile property | Properties
© 2004-2021 looksoftware. All rights reserved.