PictureSize Property

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.

Client support

Newlook Smartclient

Newlook Server

Use

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.

Settings

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 Deprecated

PicSizeZoom

nlPicSizeZoom

2

Enlarges the image, but does not distort the picture in either the horizontal or vertical direction.

See Also

DisabledPicture property | DownPicture property | HoverPicture property | Picture property | PictureAlignment property | PictureColor property | PictureOpacity property | PictureQuality property | PictureTile property | Properties

Applies To

Command button control

Form object

Frame control

ListView control

PictureBox control


© 2004-2021 looksoftware. All rights reserved.