Jpeg.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>JPEG File Format</title>
  5. <chapter>
  6. <title>JPEG File Format</title>
  7. <par>
  8. JPEG (Joint Photographic Experts Group) format
  9. is good choice for storing images with large number of colors
  10. and without sharp edges. It uses lossy compression which can greatly
  11. reduce size of image file. Imaging uses Independent JPEG Group's <b>jpeglib</b>
  12. library to load and save JPEG files. It was translated to Pascal by
  13. Jacques Nomssi Nzali. As stated in jpeglib's documentation this library
  14. can read and write <b>JFIF</b> format which is most widely used JPEG
  15. format. But there are also some proprietary and other JPEG formats
  16. which can not be read/written by jpeglib thus Imaging can not
  17. read/write them also.
  18. </par>
  19. <table>
  20. <title>JPEG File Format Support</title>
  21. <row>
  22. <th>Format</th>
  23. <th>TImageFormat equivalent</th>
  24. <th>Loading</th>
  25. <th>Saving</th>
  26. </row>
  27. <row>
  28. <td>24 bit RGB</td>
  29. <td><icode>ifR8G8B8</icode></td>
  30. <td>Yes</td>
  31. <td>Yes</td>
  32. </row>
  33. <row>
  34. <td>8 bit grayscale</td>
  35. <td><icode>ifGray8</icode></td>
  36. <td>Yes</td>
  37. <td>Yes</td>
  38. </row>
  39. </table>
  40. <par>
  41. When working with JPEG files you can find useful some options
  42. which can be set by <ref>SetOption</ref> function and their current values
  43. can be get by <ref>GetOption</ref> function.
  44. Or you can set them by modifying properties of <ref>TJpegFileFormat</ref>
  45. class.
  46. </par>
  47. <table>
  48. <title>Options Related to JPEG Files</title>
  49. <row>
  50. <th>OptionId</th>
  51. <th>Allowed Values</th>
  52. <th>Usage</th>
  53. </row>
  54. <row>
  55. <td><ref>ImagingJpegQuality</ref></td>
  56. <td><b>1</b> to <b>100</b></td>
  57. <td>JPEG compression quality used when saving images.
  58. Higher value means worse compression/better image quality/larger file size.
  59. Default value is <b>90</b>.</td>
  60. </row>
  61. <row>
  62. <td><ref>ImagingJpegProgressive</ref></td>
  63. <td><b>0 (False)</b> or <b>1 (True)</b></td>
  64. <td>Indicates whether JPEG is saved as progressive or not.
  65. Progressive JPEG rearranges the stored data into a series of scans of
  66. increasing quality. In situations where a JPEG file is transmitted across a
  67. slow communications link, a decoder can generate a low-quality image very
  68. quickly from the first scan, then gradually improve the displayed quality as
  69. more scans are received. Default value is <b>0 (False)</b>. </td>
  70. </row>
  71. </table>
  72. </chapter>
  73. </doc>