FLTK 1.4.4
Loading...
Searching...
No Matches
Fl_JPEG_Image.H
1//
2// JPEG image header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2010 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
17/* \file
18 Fl_JPEG_Image class . */
19
20#ifndef Fl_JPEG_Image_H
21#define Fl_JPEG_Image_H
22# include "Fl_Image.H"
23
30class FL_EXPORT Fl_JPEG_Image : public Fl_RGB_Image {
31
32public:
33
34 Fl_JPEG_Image(const char *filename);
35 Fl_JPEG_Image(const char *name, const unsigned char *data, int data_length=-1);
36
37protected:
38
39 void load_jpg_(const char *filename, const char *sharename, const unsigned char *data, int data_length=-1);
40
41};
42
43#endif
Fl_Image, Fl_RGB_Image classes.
void data(const char *const *p, int c)
Sets the current data pointer and count of pointers in the array.
Definition Fl_Image.H:117
Fl_JPEG_Image(const char *filename)
The constructor loads the JPEG image from the given jpeg filename.
Definition Fl_JPEG_Image.cxx:101
Fl_RGB_Image(const uchar *bits, int W, int H, int D=3, int LD=0)
The constructor creates a new image from the specified data.
Definition Fl_Image.cxx:374