LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 {
21 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif // __cplusplus
30 
42 LO_RESULT LOImageRepGetPixelDimensions(LOImageRepRef imagerep, size_t* width, size_t* height);
43 
56 LO_RESULT LOImageRepGetDPI(LOImageRepRef imagerep, double* x_dpi, double* y_dpi);
57 
73 LO_RESULT LOImageRepGetDataSize(LOImageRepRef imagerep, size_t* data_size, size_t* bits_per_pixel);
74 
89 LO_RESULT LOImageRepGetData(LOImageRepRef imagerep, size_t data_size, SUByte pixel_data[]);
90 
103  LOImageRepRef imagerep, const char* filename, LOImageRepOutputFormat format);
104 
105 #ifdef __cplusplus
106 } // end extern "C"
107 #endif // __cplusplus
108 
109 #endif // LAYOUT_MODEL_IMAGEREP_H_