Command: rasclip

Syntax

rasclip <file>

Description

Clip and/or scale an image file.

Parameters

Switches

Notes

If no output format is specified (e.g. -bmp, -gif, -jpg, -png, -ras or -wbmp) the input image format and depth are used assuming they are permitted output values.

Examples

Clip a file myfile.jpg down to a 50 x 50 pixel extract:

rasclip myfile.jpg,-clip=<50,50,99,99>

Clip and reduce in scale a tiff image file, creating a new image file (we cannot output tiff, so we convert to 24-bit png):

rasclip mymap.tif,-clip=<0,0,640,480>,-res=0.5,-of=mymap1.png,-png,-bit=24

See Also

Commands:

rasdraw, rasdump, wdisplay