LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
LayOutAPI
model
imagerep.h
Go to the documentation of this file.
1
// Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
// This file is intended for public distribution.
3
4
#ifndef LAYOUT_MODEL_IMAGEREP_H_
5
#define LAYOUT_MODEL_IMAGEREP_H_
6
7
#include <
LayOutAPI/common.h
>
8
#include <
LayOutAPI/model/defs.h
>
9
#include <
SketchUpAPI/color.h
>
10
16
typedef
enum
{
17
LOImageRepOutputFormat_PNG
= 0,
18
LOImageRepOutputFormat_JPG
,
19
LONumImageRepOutputFormats
20
}
LOImageRepOutputFormat
;
21
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif // __cplusplus
30
42
LO_RESULT
LOImageRepGetPixelDimensions
(
LOImageRepRef
imagerep,
43
size_t
* width,
44
size_t
* height);
45
58
LO_RESULT
LOImageRepGetDPI
(
LOImageRepRef
imagerep,
59
double
* x_dpi,
60
double
* y_dpi);
61
77
LO_RESULT
LOImageRepGetDataSize
(
LOImageRepRef
imagerep,
78
size_t
* data_size,
79
size_t
* bits_per_pixel);
80
95
LO_RESULT
LOImageRepGetData
(
LOImageRepRef
imagerep,
96
size_t
data_size,
97
SUByte
pixel_data[]);
98
110
LO_RESULT
LOImageRepSaveAs
(
LOImageRepRef
imagerep,
111
const
char
* filename,
112
LOImageRepOutputFormat
format);
113
114
#ifdef __cplusplus
115
}
// end extern "C"
116
#endif // __cplusplus
117
118
#endif // LAYOUT_MODEL_IMAGEREP_H_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1