Components.xml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>VCL/CLX/LCL Classes</title>
  5. <chapter>
  6. <title>VCL/CLX/LCL Classes</title>
  7. <par>
  8. Imaging contains <keyword>VCL/CLX/LCL </keyword>
  9. <icode>TGraphic</icode> descendant which uses Imaging library
  10. for loading and saving various different file formats.
  11. They actually descend from <icode>TBitmap</icode> and override only
  12. loading, saving, and assigning procedures.
  13. These classes are implemented in <ref>ImagingComponents.pas</ref> unit.
  14. </par>
  15. <par>
  16. Classes are automatically registered in unit's <icode>initialization</icode>
  17. section so you only need to add <ref>ImagingComponents</ref> to
  18. <icode>uses</icode> list somewhere in your project and
  19. <icode>TPicture</icode> class will be able to load and save images using
  20. Imaging.
  21. There are packages for <keyword>Delphi</keyword>,
  22. <keyword>Kylix</keyword>, and <keyword>Lazarus</keyword> in
  23. <keyword>Source\Projects</keyword> directory which you can install
  24. to your IDEs and use Imaging classes in form design stage too.
  25. </par>
  26. <par>
  27. Which component set is used is defined in <icode>ImagingOptions.inc</icode>
  28. include file. There are defines <icode>COMPONENT_SET_VCL</icode>,
  29. <icode>COMPONENT_SET_CLX</icode>, and <icode>COMPONENT_SET_LCL</icode>.
  30. Define one you want to use (note that checks are made to make sure that
  31. selected component set is valid for the current compiler and platform
  32. i.e. if you use Free Pascal <keyword>LCL</keyword> is set automatically).
  33. </par>
  34. <par>
  35. Note that <ref>TImagingGraphic</ref> and all its descendants
  36. can load images in all file formats supported by Imaging
  37. but save images only in file format they are named after
  38. (i.e. <ref>TImagingJpeg</ref> saves jpeg images).
  39. <ref>TImagingGraphic</ref> itself doesn't override
  40. saving methods so TBitmap's saving is used.
  41. </par>
  42. <table>
  43. <title>Classes and functions in ImagingComponents</title>
  44. <row><th>Classes</th></row>
  45. <row><td><ref>TImagingGraphic</ref></td></row>
  46. <row><td><ref>TImagingBitmap</ref></td></row>
  47. <row><td><ref>TImagingJpeg</ref></td></row>
  48. <row><td><ref>TImagingPNG</ref></td></row>
  49. <row><td><ref>TImagingGIF</ref></td></row>
  50. <row><td><ref>TImagingTarga</ref></td></row>
  51. <row><td><ref>TImagingDDS</ref></td></row>
  52. <row><td><ref>TImagingMNG</ref></td></row>
  53. <row><td><ref>TImagingJNG</ref></td></row>
  54. <row><th>Functions</th></row>
  55. <row><td><ref>DataFormatToPixelFormat</ref></td></row>
  56. <row><td><ref>PixelFormatToDataFormat</ref></td></row>
  57. <row><td><ref>ConvertImageToBitmap</ref></td></row>
  58. <row><td><ref>ConvertBitmapToImage</ref></td></row>
  59. <row><td><ref>ConvertDataToBitmap</ref></td></row>
  60. <row><td><ref>ConvertBitmapToData</ref></td></row>
  61. <row><td><ref>DisplayImage</ref></td></row>
  62. <row><td><ref>DisplayImageData</ref></td></row>
  63. <row><th>Useful functions in other units</th></row>
  64. <row><td><ref>GetImageFileFormatsFilter</ref></td></row>
  65. <row><td><ref>GetFilterIndexExtension</ref></td></row>
  66. <row><td><ref>GetFileNameFilterIndex</ref></td></row>
  67. </table>
  68. <linklist>
  69. <title>Information about the usage of VCL/CLX/LCL Classes</title>
  70. <lslink url="../Procedures/Procedures.xml">How To ... </lslink>
  71. <lslink url="../Demos/Pascal.xml">Object Pascal Demos</lslink>
  72. </linklist>
  73. </chapter>
  74. </doc>