OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
imginfo.h
Go to the documentation of this file.
1 #ifndef IMGINFO_H
2 #define IMGINFO_H
3 
4 #include "trans.h"
5 
6 /* structure to hold a dimensioned value */
7 struct dim_s {
8  double x; /* value */
9  double d; /* dimension (in pt), or 0 if not given */
10 };
11 typedef struct dim_s dim_t;
12 
13 /* structure to hold per-image information, set e.g. by calc_dimensions */
14 struct imginfo_s {
15  int pixwidth; /* width of input pixmap */
16  int pixheight; /* height of input pixmap */
17  double width; /* desired width of image (in pt or pixels) */
18  double height; /* desired height of image (in pt or pixels) */
19  double lmar, rmar, tmar, bmar; /* requested margins (in pt) */
20  trans_t trans; /* specify relative position of a tilted rectangle */
21 };
22 typedef struct imginfo_s imginfo_t;
23 
24 
25 #endif /* IMGINFO_H */
int pixheight
Definition: imginfo.h:16
int pixwidth
Definition: imginfo.h:15
double lmar
Definition: imginfo.h:19
Definition: imginfo.h:7
Definition: trans.h:12
double tmar
Definition: imginfo.h:19
double d
Definition: imginfo.h:9
double rmar
Definition: imginfo.h:19
double x
Definition: imginfo.h:8
double width
Definition: imginfo.h:17
double height
Definition: imginfo.h:18
trans_t trans
Definition: imginfo.h:20
double bmar
Definition: imginfo.h:19