Fl_JPEG_Image.H 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // "$Id: Fl_JPEG_Image.H 10732 2015-05-23 23:42:26Z matt $"
  3. //
  4. // JPEG image header file for the Fast Light Tool Kit (FLTK).
  5. //
  6. // Copyright 1998-2010 by Bill Spitzak and others.
  7. //
  8. // This library is free software. Distribution and use rights are outlined in
  9. // the file "COPYING" which should have been included with this file. If this
  10. // file is missing or damaged, see the license at:
  11. //
  12. // http://www.fltk.org/COPYING.php
  13. //
  14. // Please report all bugs and problems on the following page:
  15. //
  16. // http://www.fltk.org/str.php
  17. //
  18. /* \file
  19. Fl_JPEG_Image class . */
  20. #ifndef Fl_JPEG_Image_H
  21. #define Fl_JPEG_Image_H
  22. # include "Fl_Image.H"
  23. /**
  24. The Fl_JPEG_Image class supports loading, caching,
  25. and drawing of Joint Photographic Experts Group (JPEG) File
  26. Interchange Format (JFIF) images. The class supports grayscale
  27. and color (RGB) JPEG image files.
  28. */
  29. class FL_EXPORT Fl_JPEG_Image : public Fl_RGB_Image {
  30. public:
  31. Fl_JPEG_Image(const char *filename);
  32. Fl_JPEG_Image(const char *name, const unsigned char *data);
  33. static int encode(Fl_Image *img, int quality, unsigned char **outbuffer, int &outlen);
  34. DECLARE_CLASS_CHEAP_RTTI_2(Fl_JPEG_Image, Fl_RGB_Image)
  35. };
  36. #endif
  37. //
  38. // End of "$Id: Fl_JPEG_Image.H 10732 2015-05-23 23:42:26Z matt $".
  39. //