Gambas Documentation
Documents

Picture.Stretch (gb.qt4)

Function Stretch ( Width As Integer [ , Height As Integer ] ) As Picture

Since 3.16

Return a stretched copy of a picture.

  • Width and Height are the size of the stretched picture. If Height is omitted, it is made equal to Width.

If one of the two dimensions is negative, then the image is stretched according to the other dimension, and the image proportions are kept.

This function internally transforms the picture into an image and calls the Image.Stretch method.