[Gambas-user] Stretching an image As Image

Ru Vuott vuott at ...325...
Sat Sep 29 18:40:58 CEST 2012


Hello,

I'ld like to insert an image into a gridview cell.
Since the image is larger than the cell, I would like to reduce it by "stretching":

*******
Public Sub .........()

 Dim p As Picture
 Dim i As New Image

  i = i.Load("my_image")

  With GridView1[0, 0]
     i.Stretch(.W, .H)
     p = i.Picture
   .Picture = p
  End With

.........

End
************

but the image is not stretched !   Why ?

Thanks
vuottt




More information about the User mailing list