Components.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>VCL/LCL Classes</title>
  5. <chapter>
  6. <title>VCL/LCL Classes</title>
  7. <par>
  8. Imaging contains <keyword>VCL/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. 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. Note that <ref>TImagingGraphic</ref> and all its descendants
  28. can load images in all file formats supported by Imaging
  29. but save images only in file format they are named after
  30. (i.e. <ref>TImagingJpeg</ref> saves jpeg images).
  31. <ref>TImagingGraphic</ref> itself doesn't override
  32. saving methods so TBitmap's saving is used.
  33. </par>
  34. <table>
  35. <title>Classes and functions in ImagingComponents</title>
  36. <row><th>Classes</th></row>
  37. <row><td><ref>TImagingGraphic</ref></td></row>
  38. <row><td><ref>TImagingBitmap</ref></td></row>
  39. <row><td><ref>TImagingJpeg</ref></td></row>
  40. <row><td><ref>TImagingPNG</ref></td></row>
  41. <row><td><ref>TImagingGIF</ref></td></row>
  42. <row><td><ref>TImagingTarga</ref></td></row>
  43. <row><td><ref>TImagingDDS</ref></td></row>
  44. <row><td><ref>TImagingMNG</ref></td></row>
  45. <row><td><ref>TImagingJNG</ref></td></row>
  46. <row><th>Functions</th></row>
  47. <row><td><ref>DataFormatToPixelFormat</ref></td></row>
  48. <row><td><ref>PixelFormatToDataFormat</ref></td></row>
  49. <row><td><ref>ConvertImageToBitmap</ref></td></row>
  50. <row><td><ref>ConvertBitmapToImage</ref></td></row>
  51. <row><td><ref>ConvertDataToBitmap</ref></td></row>
  52. <row><td><ref>ConvertBitmapToData</ref></td></row>
  53. <row><td><ref>DisplayImage</ref></td></row>
  54. <row><td><ref>DisplayImageData</ref></td></row>
  55. <row><th>Useful functions in other units</th></row>
  56. <row><td><ref>GetImageFileFormatsFilter</ref></td></row>
  57. <row><td><ref>GetFilterIndexExtension</ref></td></row>
  58. <row><td><ref>GetFileNameFilterIndex</ref></td></row>
  59. </table>
  60. <linklist>
  61. <title>Information about the usage of VCL/LCL Classes</title>
  62. <lslink url="../Procedures/Procedures.xml">How To ... </lslink>
  63. <lslink url="../Demos/Pascal.xml">Object Pascal Demos</lslink>
  64. </linklist>
  65. </chapter>
  66. </doc>