Paint.StretchImage (gb.gui)
Static Function StretchImage ( Image As Image, X As Float, Y As Float, Width As Float, Height As Float [ , Alignment As Integer, Opacity As Float, Source As Rect ] ) As RectF
 
Stretch and draw an image or part of an image so that it fits a specified rectangle.
  - 
Image is the image to draw.
 
  - 
X, Y, Width and Height define the position and size of the target rectangle.
 
  - 
Alignment is the alignment of the stretched image inside the targer rectangle. It's Align.Center by default.
 
  - 
Opacity is the opacity of the painting. By default it is 
1.0, i.e. fully opaque.
 
  - 
Source defines the part of the image to draw. By default it is 
NULL, i.e. the entire image is drawn.
 
  
The final image position and size is returned as a 
RectF object.