Leadtools.Jpeg2000 Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ExtractFrames Method
See Also 
Leadtools.Jpeg2000 Namespace > Jpeg2000Engine Class : ExtractFrames Method



inputFileName
String containing the name of the JPEG 2000 file from which the frames are being extracted.
outputFileName
String containing the name of the JPEG 2000 file to be used to save the extracted frames. This file will contain only the extracted frames.
frames
Frame indices. A list of integers specifying the indices of the frames to be extracted from the input file. All indices should be 0-based.
Extracts specific frames from the input file, and saves them to a new JPEG 2000 file. This file contains only the extracted frame headers/codestreams (not any obtained through the decompressing/recompressing process) so it saves processor time and memory. This method is available in the Document/Medical Toolkits.

Syntax

Visual Basic (Declaration) 
Public Sub ExtractFrames( _
   ByVal inputFileName As String, _
   ByVal outputFileName As String, _
   ByVal frames As List(Of Integer) _
) 
Visual Basic (Usage)Copy Code
Dim instance As Jpeg2000Engine
Dim inputFileName As String
Dim outputFileName As String
Dim frames As List(Of Integer)
 
instance.ExtractFrames(inputFileName, outputFileName, frames)
C# 
public void ExtractFrames( 
   string inputFileName,
   string outputFileName,
   List<int> frames
)
C++/CLI 
public:
void ExtractFrames( 
   String^ inputFileName,
   String^ outputFileName,
   List<int>^ frames
) 

Parameters

inputFileName
String containing the name of the JPEG 2000 file from which the frames are being extracted.
outputFileName
String containing the name of the JPEG 2000 file to be used to save the extracted frames. This file will contain only the extracted frames.
frames
Frame indices. A list of integers specifying the indices of the frames to be extracted from the input file. All indices should be 0-based.

Example

For an example, refer to Jpeg2000Engine.AppendGmlData example.

Remarks

. This method is very suitable for server applications where multiple clients request specific frames of a JPEG 2000 file. Instead of decompressing and then recompressing the frames this method copies only the needed frame data, saving the data to a new JPEG 2000 file.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Jpeg2000 requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features