Debian Codegraph @

fon/Image.h

raw symbols SCIP
1 #ifndef _Image_h_
2 #define _Image_h_
3 /* Image.h
4 *
5 * Copyright (C) 1992-2011,2015,2017 Paul Boersma
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "Sampled.h"
22 #include "Graphics.h"
23
24 #include "Image_def.h"
25
26 /*
27 An object of type Image represents a quantized function z (x, y)
28 on the domain [xmin, xmax] * [ymin, ymax].
29 The domain has been sampled in the x and y directions
30 with constant sampling intervals (dx and dy) along each direction.
31 The samples are thus z [iy] [ix] with ix = 1..nx and iy = 1..ny.
32 These represent the function values z (x1 + (ix - 1) * dx, y1 + (iy - 1) * dy).
33 */
34
35 //int Image_init
36 // (Image me, double xmin, double xmax, integer nx, double dx, double x1,
37 // double ymin, double ymax, integer ny, double dy, double y1);
38
39 //Image Image_create
40 // (double xmin, double xmax, integer nx, double dx, double x1,
41 // double ymin, double ymax, integer ny, double dy, double y1);
42 /*
43 Function:
44 return a new empty Image.
45 Preconditions:
46 xmin <= xmax; ymin <= ymax;
47 nx >= 1; ny >= 1;
48 dx > 0.0; dy > 0.0;
49 Postconditions:
50 result -> xmin == xmin;
51 result -> xmax == xmax;
52 result -> ymin == ymin;
53 result -> ymax == ymax;
54 result -> nx == nx;
55 result -> ny == ny;
56 result -> dx == dx;
57 result -> dy == dy;
58 result -> x1 == x1;
59 result -> y1 == y1;
60 result -> z [1..ny] [1..nx] == 0;
61 */
62
63 //integer Image_getWindowExtrema (Image me, integer ixmin, integer ixmax, integer iymin, integer iymax,
64 // unsigned char *minimum, unsigned char *maximum);
65
66 //void Image_paint (Image me, Graphics g, double xmin, double xmax, double ymin, double ymax,
67 // unsigned char minimum, unsigned char maximum);
68 /*
69 Every sample is drawn as a grey rectangle.
70 The larger the value of the sample, the darker the rectangle.
71 */
72
73 /* End of file Image.h */
74 #endif