FLTK 1.3.11
Toggle main menu visibility
Loading...
Searching...
No Matches
Fl_Tiled_Image.H
1
//
2
// "$Id$"
3
//
4
// Tiled image header file for the Fast Light Tool Kit (FLTK).
5
//
6
// Copyright 1998-2015 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
19
/* \file
20
Fl_Tiled_Image widget . */
21
22
#ifndef Fl_Tiled_Image_H
23
# define Fl_Tiled_Image_H
24
25
# include "
Fl_Image.H
"
26
27
34
class
FL_EXPORT
Fl_Tiled_Image
:
public
Fl_Image {
35
protected
:
36
37
Fl_Image *image_;
// The image that is tiled
38
int
alloc_image_;
// Did we allocate this image?
39
40
public
:
41
42
Fl_Tiled_Image
(Fl_Image *i,
int
W = 0,
int
H = 0);
43
virtual
~Fl_Tiled_Image
();
44
45
virtual
Fl_Image *
copy
(
int
W,
int
H);
46
Fl_Image *
copy
() {
return
copy
(
w
(),
h
()); }
47
virtual
void
color_average
(
Fl_Color
c,
float
i);
48
virtual
void
desaturate
();
49
virtual
void
draw
(
int
X,
int
Y,
int
W,
int
H,
int
cx,
int
cy);
50
void
draw
(
int
X,
int
Y) {
draw
(X, Y,
w
(),
h
(), 0, 0); }
52
Fl_Image *
image
() {
return
image_; }
53
};
54
55
#endif
// !Fl_Tiled_Image_H
56
57
//
58
// End of "$Id$"
59
//
Fl_Color
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition
Enumerations.H:941
Fl_Image.H
Fl_Image, Fl_RGB_Image classes.
Fl_Image::draw
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0)
Draws the image with a bounding box.
Definition
Fl_Image.cxx:66
Fl_Image::desaturate
virtual void desaturate()
The desaturate() method converts an image to grayscale.
Definition
Fl_Image.cxx:117
Fl_Image::color_average
virtual void color_average(Fl_Color c, float i)
The color_average() method averages the colors in the image with the FLTK color value c.
Definition
Fl_Image.cxx:106
Fl_Image::w
int w() const
Returns the current image width in pixels.
Definition
Fl_Image.H:111
Fl_Image::copy
Fl_Image * copy()
The copy() method creates a copy of the specified image.
Definition
Fl_Image.H:150
Fl_Image::h
int h() const
Returns the current image height in pixels.
Definition
Fl_Image.H:115
Fl_Tiled_Image::Fl_Tiled_Image
Fl_Tiled_Image(Fl_Image *i, int W=0, int H=0)
The constructors create a new tiled image containing the specified image.
Definition
Fl_Tiled_Image.cxx:57
Fl_Tiled_Image::image
Fl_Image * image()
Gets The image that is tiled.
Definition
Fl_Tiled_Image.H:52
FL
Fl_Tiled_Image.H
Generated by
1.17.0