Cols, Rows Properties (PictureClip Control)

       

Set or return the total number of columns or rows in the picture.

Syntax

[form.]PictureClip.Cols[ = cols%]

[form.]PictureClip.Rows[ = rows%]

Remarks

Use these properties to divide the source bitmap into a uniform matrix of picture cells. Use the GraphicCell property to specify individual cells.

A PictureClip control must have at least one column and one row.

The height of each graphic cell is determined by dividing the height of the source bitmap by the number of specified rows. Leftover pixels at the bottom of the source bitmap (caused by integer rounding) are clipped.

The width of each graphic cell is determined by dividing the width of the source bitmap by the number of specified columns. Leftover pixels at the right of the source bitmap (caused by integer rounding) are clipped.

Data Type

Integer