|
JPEG2000 Image Format Support
Pregled
HotPDF zdaj zagotavlja celovito podporo za slikovne formate JPEG2000, vključno z datotekami JP2, J2K in JPT JPEG2000 je standard stiskanja slik, ki temelji na valovanju, in ponuja boljšo učinkovitost stiskanja ter kakovost v primerjavi s tradicionalnim formatom JPEG
Podprte oblike
- JP2: JPEG2000 Part 1 format with complete file structure
- J2K: JPEG2000 codestream format (raw compressed data)
- JPT: JPEG2000 Part 9 JPIP (JPEG2000 Interactive Protocol) format
Key Features
- Automatic format detection and appropriate processing
- Podpora za stiskanje brez izgube in z izgubo
- Multi-component image support (RGB, RGBA, Grayscale)
- Advanced bit-depth support (8, 12, 16 bits per component)
- Progressive decoding capabilities
- Memory-efficient processing for large images
Usage Example
// Delphi example - Adding JPEG2000 image to PDF
procedure AddJPEG2000Image;
var
PDF: THotPDF;
begin
PDF := THotPDF.Create(nil);
try
PDF.FileName := 'output.pdf';
PDF.BeginDoc;
PDF.AddPage;
// Add JPEG2000 image - format is automatically detected
PDF.AddImage('sample.jp2', 100, 100, 200, 150);
// J2K codestream format is also supported
PDF.AddImage('sample.j2k', 100, 300, 200, 150);
PDF.EndDoc;
finally
PDF.Free;
end;
end;
Technical Implementation
Podpora za JPEG2000 je izvedena prek enote HPDFJpeg2000.pas, ki ponuja
- THPDFJpeg2000Decoder: Main decoder class for processing JPEG2000 images
- Format Detection: Automatic identification of JP2, J2K, and JPT formats
- Obdelava tokov: podpora za nalaganje slik iz datoteke in iz toka
- OpenJPEG Integration: Framework for advanced processing using OpenJPEG library
Performance Benefits
- Better compression ratios than traditional JPEG
- No blocking artifacts at high compression rates
- Progressive transmission and viewing
- Region of interest (ROI) encoding support
- Lossless compression option
Compatibility
Podpora JPEG2000 je na voljo v 32-bitni in 64-bitni različici HotPDF in je združljiva z vsemi podprtimi različicami Delphija in C++ Builderja
Glejte tudi
|