Visual Basic: PictureClip Control

StretchX, StretchY Properties (PictureClip Control)

See Also   Example   Applies To

Specify the target size for the bitmap created with the Clip property. These properties are not available at design time.

Syntax

[form.]PictureClip.StretchX[ = X%]

[form.]PictureClip.StretchY[ = Y%]

Remarks

Use these properties to define the area to which the Clip bitmap is copied. When the bitmap is copied, it is either stretched or condensed to fit the area defined by StretchX and StretchY.

StretchX and StretchY are measured in pixels.

Note In Visual Basic, the default ScaleMode for forms and picture boxes is twips. Set ScaleMode = 3 (pixels) for all controls that display pictures from a PictureClip control.

Data Type

Integer