|
JPEG2000 Image Format Support
סקירה
HotPDF מספקת כעת תמיכה מקיפה בפורמטי תמונת JPEG2000, כולל קובצי JP2, J2K ו-JPT. JPEG2000 הוא תקן דחיסת תמונה מבוסס wavelet שמספק יעילות דחיסה ואיכות גבוהות יותר לעומת פורמט JPEG המסורתי
פורמטים נתמכים
- 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
- Support for both lossless and lossy compression
- 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
תמיכת JPEG2000 ממומשת דרך היחידה HPDFJpeg2000.pas, המספקת:
- THPDFJpeg2000Decoder: Main decoder class for processing JPEG2000 images
- Format Detection: Automatic identification of JP2, J2K, and JPT formats
- Stream Processing: Support for both file and stream-based image loading
- 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
תמיכת JPEG2000 זמינה גם בגרסאות 32-bit וגם בגרסאות 64-bit של HotPDF ותואמת לכל גרסאות Delphi ו-C++ Builder הנתמכות
See Also
|