Leadtools.Codecs Namespace > RasterCodecs Class > CompactFile Method : CompactFile(String,String,Int32,Int32,Boolean,Int32,Int32,Boolean,Int32,CodecsSavePageMode,Boolean,Boolean) Method |
Offset into the source file for the start page. Used only if useSrcIfd is true.
All pages will be relative to that page. (Note that this might not be the first physical page in the file). This is a common technique for manipulating files with thousands of pages.
Offset into the destination file for the start page. Used only if useDestIfd is true.
All pages will be relative to that page. (Note that this might not be the first physical page in the file). This is a common technique for manipulating files with thousands of pages.
Value | Meaning |
---|---|
CodecsSavePageMode.Insert | All pages are inserted before destStartPage. |
CodecsSavePageMode.Replace | Pages in destFileName are replaced beginning with destStartPage. |
public void CompactFile( string srcFileName, string destFileName, int pages, int srcStartPage, bool useSrcIfd, int srcIfd, int destStartPage, bool useDestIfd, int destIfd, CodecsSavePageMode pageMode, bool noSubFileType, bool motorolaOrder )
'Declaration Public Overloads Sub CompactFile( _ ByVal srcFileName As String, _ ByVal destFileName As String, _ ByVal pages As Integer, _ ByVal srcStartPage As Integer, _ ByVal useSrcIfd As Boolean, _ ByVal srcIfd As Integer, _ ByVal destStartPage As Integer, _ ByVal useDestIfd As Boolean, _ ByVal destIfd As Integer, _ ByVal pageMode As CodecsSavePageMode, _ ByVal noSubFileType As Boolean, _ ByVal motorolaOrder As Boolean _ )
'Usage Dim instance As RasterCodecs Dim srcFileName As String Dim destFileName As String Dim pages As Integer Dim srcStartPage As Integer Dim useSrcIfd As Boolean Dim srcIfd As Integer Dim destStartPage As Integer Dim useDestIfd As Boolean Dim destIfd As Integer Dim pageMode As CodecsSavePageMode Dim noSubFileType As Boolean Dim motorolaOrder As Boolean instance.CompactFile(srcFileName, destFileName, pages, srcStartPage, useSrcIfd, srcIfd, destStartPage, useDestIfd, destIfd, pageMode, noSubFileType, motorolaOrder)
public void CompactFile( string srcFileName, string destFileName, int pages, int srcStartPage, bool useSrcIfd, int srcIfd, int destStartPage, bool useDestIfd, int destIfd, CodecsSavePageMode pageMode, bool noSubFileType, bool motorolaOrder )
function Leadtools.Codecs.RasterCodecs.CompactFile(String,String,Int32,Int32,Boolean,Int32,Int32,Boolean,Int32,CodecsSavePageMode,Boolean,Boolean)( srcFileName , destFileName , pages , srcStartPage , useSrcIfd , srcIfd , destStartPage , useDestIfd , destIfd , pageMode , noSubFileType , motorolaOrder )
public: void CompactFile( String^ srcFileName, String^ destFileName, int pages, int srcStartPage, bool useSrcIfd, int srcIfd, int destStartPage, bool useDestIfd, int destIfd, CodecsSavePageMode pageMode, bool noSubFileType, bool motorolaOrder )
Offset into the source file for the start page. Used only if useSrcIfd is true.
All pages will be relative to that page. (Note that this might not be the first physical page in the file). This is a common technique for manipulating files with thousands of pages.
Offset into the destination file for the start page. Used only if useDestIfd is true.
All pages will be relative to that page. (Note that this might not be the first physical page in the file). This is a common technique for manipulating files with thousands of pages.
Value | Meaning |
---|---|
CodecsSavePageMode.Insert | All pages are inserted before destStartPage. |
CodecsSavePageMode.Replace | Pages in destFileName are replaced beginning with destStartPage. |
This method can also be used to copy or extract one or more pages from a TIFF file and copy them without recompression to another TIFF file. Whenever you save an image containing a region as a TIFF file format, the region is also saved. Note, however, that the ability to save a region inside a TIFF file must be unlocked. This requires a Document Imaging or Medical Imaging toolkit.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2