PictureDrawMode Property (AForm)

Returns or sets a value that determines the mode for drawing pictures on the object.

Syntax

Object.PictureDrawMode [ = enPictureDrawMode ]

The PictureDrawMode property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

enPictureDrawMode

enumAFormPictureDrawMode

An integer which specifies the mode for drawing pictures on the object.

Where

enumAFormPictureDrawMode:

 

Name

Value

Description

aformPictureDrawModeTile

1

Tile. If the source area is smaller than the target area, the picture will be tiled to fill the target area.

aformPictureDrawModeClip

2

Clip. If the source area is larger than the target area, the picture will be clipped to fit the target area, starting at the top left-most position on the source area.

aformPictureDrawModeStretch

4

Stretch. If the source area is smaller than the target area, the source area will be stretched vertically and/or horiztonally as needed to fill the target area.

aformPictureDrawModeTopLeft

8

TopLeft. Start inserting the source area into the target area starting at the top left-most position on the target area.

aformPictureDrawModeTopRight

16

TopRight. Start inserting the source area into the target area starting at the top right-most position on the target area.

aformPictureDrawModeBottomLeft

32

BottomLeft.Start inserting the source area into the target area starting at the bottom left-most position on the target area.

aformPictureDrawModeBottomRight

64

BottomRight. Start inserting the source area into the target area starting at the bottom right-most position on the target area.

aformPictureDrawModeCenter

128

Center. Start inserting the source area into the target area starting from the center of the source area into the center of the target area.

Example

The following statement changes the AForm PictureDrawMode to center the picture:

frm1.PictureDrawMode=aformPictureDrawModeCenter

Applies to

AForm

See Also

PaletteMode, Picture