Interesting, the help file on STRETCH-TO-FIT clearly states:
Forces the image to expand or contract to fit within the image widget’s boundaries.
Note that you need to set the size of your image
before loading the image on to it. The numbers you are passing in the load-image do not specify the size of the image, but specify which part of the image you want.
Code:
DEF VAR hwframe AS HANDLE NO-UNDO.
DEF VAR hwimage AS HANDLE NO-UNDO.
CREATE FRAME hwframe.
ASSIGN
hwframe:PARENT = CURRENT-WINDOW
hwframe:WIDTH-PIXELS = 200
hwframe:HEIGHT-PIXELS = 200
.
CREATE IMAGE hwimage.
ASSIGN
hwimage:FRAME = hwframe
hwimage:RETAIN-SHAPE = TRUE
hwimage:STRETCH-TO-FIT = TRUE
hwimage:WIDTH-PIXELS = 150
hwimage:HEIGHT-PIXELS = 150
.
hwimage:LOAD-IMAGE( "c:\temp\test.jpg" ).
hwframe:VISIBLE = TRUE
WAIT-FOR CLOSE OF THIS-PROCEDURE.
The above shrinks fine (10.2B02).