Debian Codegraph @

fon/Photo.h

raw symbols SCIP
1 #cxx . . $ `<file>/fon/Photo.h`/ifndef _Photo_h_
2 #define _Photo_h_cxx . . $ `fon/Photo.h:2:9`!
3 /* Photo.h
4 *
5 * Copyright (C) 2013-2017,2019,2026 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 3 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 "Matrix.h"cxx . . $ `<file>/fon/Matrix.h`/
22
23 #include "Photo_def.h"cxx . . $ `<file>/fon/Photo_def.h`/
24
25 void Photo_initcxx . . $ Photo_init(ee2d916835cc0b80). (Photocxx . . $ Photo# me,
26 double xmin, double xmax, integercxx . . $ integer# nx, double dx, double x1,
27 double ymin, double ymax, integercxx . . $ integer# ny, double dy, double y1);
28
29 autoPhotocxx . . $ autoPhoto# Photo_createcxx . . $ Photo_create(9cc57878c61d2f55).
30 (double xmin, double xmax, integercxx . . $ integer# nx, double dx, double x1,
31 double ymin, double ymax, integercxx . . $ integer# ny, double dy, double y1);
32 /*
33 Function:
34 return a new opaque black Photo.
35 Preconditions:
36 xmin <= xmax; ymin <= ymax;
37 nx >= 1; ny >= 1;
38 dx > 0.0; dy > 0.0;
39 Postconditions:
40 result -> xmin == xmin;
41 result -> xmax == xmax;
42 result -> ymin == ymin;
43 result -> ymax == ymax;
44 result -> nx == nx;
45 result -> ny == ny;
46 result -> dx == dx;
47 result -> dy == dy;
48 result -> x1 == x1;
49 result -> y1 == y1;
50 result -> d_red -> z [1..ny] [1..nx] == 0.0;
51 result -> d_green -> z [1..ny] [1..nx] == 0.0;
52 result -> d_blue -> z [1..ny] [1..nx] == 0.0;
53 result -> d_transparency -> z [1..ny] [1..nx] == 0.0;
54 */
55
56 autoPhotocxx . . $ autoPhoto# Photo_createSimplecxx . . $ Photo_createSimple(5ba437357d2f75b3). (integercxx . . $ integer# numberOfRows, integercxx . . $ integer# numberOfColumns);
57 /*
58 Function:
59 return a new opaque black Photo.
60 Preconditions:
61 numberOfRows >= 1; numberOfColumns >= 1;
62 Postconditions:
63 result -> xmin == 0.5;
64 result -> xmax == numberOfColumns + 0.5;
65 result -> ymin == 0.5;
66 result -> ymax == numberOfRows + 0.5;
67 result -> nx == numberOfColumns;
68 result -> ny == numberOfRows;
69 result -> dx == 1;
70 result -> dy == 1;
71 result -> x1 == 1;
72 result -> y1 == 1;
73 result -> d_red -> z [1..ny] [1..nx] == 0.0;
74 result -> d_green -> z [1..ny] [1..nx] == 0.0;
75 result -> d_blue -> z [1..ny] [1..nx] == 0.0;
76 result -> d_transparency -> z [1..ny] [1..nx] == 0.0;
77 */
78
79 autoPhotocxx . . $ autoPhoto# Photo_readFromImageFilecxx . . $ Photo_readFromImageFile(4beee1b83b67140c). (MelderFilecxx . . $ MelderFile# file);
80
81 MelderColourcxx . . $ MelderColour# Photo_getValueAtXYcxx . . $ Photo_getValueAtXY(886bb387c2efa819). (Photocxx . . $ Photo# me, double x, double y);
82 /*
83 Linear interpolation between matrix points,
84 constant extrapolation in cells on the edge,
85 undefined outside the union of the unit squares around the points.
86 */
87
88 void Photo_replaceRedcxx . . $ Photo_replaceRed(4c38104ca1184f4d). (Photocxx . . $ Photo# me, Matrixcxx . . $ Matrix# red);
89 void Photo_replaceGreencxx . . $ Photo_replaceGreen(4c38104ca1184f4d). (Photocxx . . $ Photo# me, Matrixcxx . . $ Matrix# green);
90 void Photo_replaceBluecxx . . $ Photo_replaceBlue(4c38104ca1184f4d). (Photocxx . . $ Photo# me, Matrixcxx . . $ Matrix# blue);
91 void Photo_replaceTransparencycxx . . $ Photo_replaceTransparency(4c38104ca1184f4d). (Photocxx . . $ Photo# me, Matrixcxx . . $ Matrix# transparency);
92
93 void Photo_paintImageInsidecxx . . $ Photo_paintImageInside(ab4968d4013843ec). (Photocxx . . $ Photo# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin, double ymax);
94 void Photo_paintImagecxx . . $ Photo_paintImage(ab4968d4013843ec). (Photocxx . . $ Photo# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin, double ymax);
95
96 void Photo_paintCellsInsidecxx . . $ Photo_paintCellsInside(ab4968d4013843ec). (Photocxx . . $ Photo# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin, double ymax);
97 void Photo_paintCellscxx . . $ Photo_paintCells(ab4968d4013843ec). (Photocxx . . $ Photo# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin, double ymax);
98 /*
99 Every sample is drawn as a rectangle.
100 */
101
102 void Photo_playMoviecxx . . $ Photo_playMovie(56f4492dea08ce2). (Photocxx . . $ Photo# me, Graphicscxx . . $ Graphics# g);
103 void Photo_saveAsPNGcxx . . $ Photo_saveAsPNG(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
104 void Photo_saveAsTIFFcxx . . $ Photo_saveAsTIFF(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
105 void Photo_saveAsGIFcxx . . $ Photo_saveAsGIF(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
106 void Photo_saveAsWindowsBitmapFilecxx . . $ Photo_saveAsWindowsBitmapFile(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
107 void Photo_saveAsJPEGcxx . . $ Photo_saveAsJPEG(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
108 void Photo_saveAsJPEG2000cxx . . $ Photo_saveAsJPEG2000(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
109 void Photo_saveAsAppleIconFilecxx . . $ Photo_saveAsAppleIconFile(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
110 void Photo_saveAsWindowsIconFilecxx . . $ Photo_saveAsWindowsIconFile(c5be2ee79548ebb0). (Photocxx . . $ Photo# me, MelderFilecxx . . $ MelderFile# file);
111
112 /* End of file Photo.h */
113 #endif