Assuming this command still exists in Blitzmax (haven't got it on this PC so can't check but I'm sure I remember seeing it in the documentation):
DrawImageRect image,x,y,rect_x,rect_y,rect_width,rect_height,[frame]