![]()
The following raster loading and saving commands are available for use in a Command File.
LoadRasterRasterFileName 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
SaveRasterNo 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.
SaveRasterBMPNo 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.
SaveRasterCALNo 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.
SaveRasterCITNo 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.
SaveRasterCG4No 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.
SaveRasterGIFNo 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.
SaveRasterGP4No 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.
SaveRasterIMGNo 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.
SaveRasterJPENo 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.
SaveRasterJPEGNo 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.
SaveRasterJPGNo 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. SaveRasterMILNo 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.
SaveRasterPCXNo 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.
SaveRasterPNGNo 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.
SaveRasterTIFNonNo 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.
SaveRasterTIFPackbitsNo 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.
SaveRasterTIFCCITT3No 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.
SaveRasterTIFCCITT4No 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. SaveAsRasterRasterFileName 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
|
Raster loading and saving commands
Have questions on this topic? Talk to us