Load this example

# DRAW AN IMAGE AND TEST THE DIFFERENT RESIZE ALGORITHMS
#=======================================================

verbose
send_set_verbose
set_workpace_geometry PlaneWidth=1024 PlaneHeight=1024 DataType=0 CellWidth=512 CellHeight=512
send_read_other Plane=-1 X=0 Y=0 Width=0 Height=0 Expand=No FileName="../IMAGES/HS.gif"
send_image_resize PlaneFrom=-1 XFrom=27 YFrom=29 WidthFrom=110 HeightFrom=104 PlaneTo=-1 XTo=512 YTo=0 WidthTo=512 HeightTo=512 XFactor=0.0 YFactor=0.0 Mask=No LinearColorScale=Yes RescaleValues=No Method="NearestPixel"
send_image_resize PlaneFrom=-1 XFrom=27 YFrom=29 WidthFrom=110 HeightFrom=104 PlaneTo=-1 XTo=512 YTo=512 WidthTo=512 HeightTo=512 XFactor=0.0 YFactor=0.0 Mask=No LinearColorScale=Yes RescaleValues=No Method="LinearInterpolation"
send_image_resize PlaneFrom=-1 XFrom=27 YFrom=29 WidthFrom=110 HeightFrom=104 PlaneTo=-1 XTo=0 YTo=512 WidthTo=512 HeightTo=512 XFactor=0.0 YFactor=0.0 Mask=No LinearColorScale=Yes RescaleValues=No Method="BicubicSpline"
send_image_resize PlaneFrom=-1 XFrom=27 YFrom=29 WidthFrom=110 HeightFrom=104 PlaneTo=-1 XTo=185 YTo=160 WidthTo=300 HeightTo=300 XFactor=0.0 YFactor=0.0 Mask=No LinearColorScale=Yes RescaleValues=No Method="MeanValue"
send_unset_verbose
send_stop

RESIZE.gif