Request a Personalized Demo

Learn how to accurately convert your designs with Scan2CAD

  • This field is for validation purposes and should be left unchanged.
  • Join thousands of happy customers worldwide

Raster loading and saving commands

 

The following raster loading and saving commands are available for use in a Command File.

 

LoadRaster

RasterFileName

One argument.

Loads a raster image, including the raster entities in a PDF file.

If the PDF file is a multi-page file, only the first page will be loaded. To process both the raster and vector entities in a PDF file, and to process multi-page PDF files, use BatchSettings followed by BatchByDirectory.

The following example code loads the raster image floorplan.tif:

LOADRASTER

c:\users\username\documents\scan2cadv8\samples\floorplan.tif

 

SaveRaster

No arguments.

Saves the currently loaded raster image using the current file name and type.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.tif.

 

SaveRasterBMP

No arguments.

Saves the currently loaded raster image as a BMP file.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.bmp.

 

SaveRasterCAL

No arguments.

Saves the currently loaded raster image as a CALS file with a .cal extension.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.cal.

 

SaveRasterCIT

No arguments.

Saves the currently loaded raster image as a CIT file.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.cit.

 

SaveRasterCG4

No arguments.

Saves the currently loaded raster image as a CALS file with a .cg4 extension.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.cg4.

 

SaveRasterGIF

No arguments.

Saves the currently loaded raster image as a GIF file.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.gif.

 

SaveRasterGP4

No arguments.

Saves the currently loaded raster image as a CALS file with a .gp4 extension.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.gp4.

 

SaveRasterIMG

No arguments.

Saves the currently loaded raster image as an IMG file.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.img.

 

SaveRasterJPE

No arguments.

Saves the currently loaded raster image as a JPEG file with a .jpe extension.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.jpe.

 

SaveRasterJPEG

No arguments.

Saves the currently loaded raster image as a JPEG file with a .jpeg extension.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.jpeg.

 

SaveRasterJPG

No arguments.

Saves the currently loaded raster image as a JPEG file with a .jpg extension.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.jpg.

 

SaveRasterMIL

No arguments.

Saves the currently loaded raster image as a CALS file with a .mil extension.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.mil.

 

SaveRasterPCX

No arguments.

Saves the currently loaded raster image as a PCX file.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.pcx.

 

SaveRasterPNG

No arguments.

Saves the currently loaded raster image as a PNG file.

For example if the currently loaded raster image is called floorplan.tif, it will be saved as floorplan.png.

 

SaveRasterTIFNon

No arguments.

Saves the currently loaded raster image as an uncompressed TIFF file.

For example if the currently loaded raster image is called floorplan.bmp, it will be saved as floorplan.tif.

 

SaveRasterTIFPackbits

No arguments.

Saves the currently loaded raster image as a packbits compressed TIFF file.

For example if the currently loaded raster image is called floorplan.bmp, it will be saved as floorplan.tif.

 

SaveRasterTIFCCITT3

No arguments.

Saves the currently loaded raster image as a fax group 3 compressed TIFF file.

For example if the currently loaded raster image is called floorplan.bmp, it will be saved as floorplan.tif.

Only 1 Bit (black and white) images can be saved in this format. You can ensure that an image is 1 Bit by using the ReduceColorDepth1Bit command before using SaveRasterTIFCCITT3.

 

SaveRasterTIFCCITT4

No arguments.

Saves the currently loaded raster image as a fax group 4 compressed TIFF file.

For example if the currently loaded raster image is called floorplan.bmp, it will be saved as floorplan.tif.

Only 1 Bit (black and white) images can be saved in this format. You can ensure that an image is 1 Bit by using the ReduceColorDepth1Bit command before using SaveRasterTIFCCITT4.

 

SaveAsRaster

RasterFileName

One argument.

Saves the currently loaded raster image using a new name and/or format. The image will be saved in the format specified by the extension you give. This can be any of the following: .bmp, .pcx, .tif, .img, .cal, .gp4, .cg4, .mil, .jpeg, .jpe, .jpg, .gif, .png, .pdf.

The following example code will save the currently loaded raster image as a BMP file called floorplan1.bmp:

SAVEASRASTER

c:\users\username\documents\scan2cadv8\samples\floorplan1.bmp

 

Have questions on this topic? Talk to us