Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-13 18:27:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-13 18:27:12 +0400
commit05d004fd14876d9df0ca1028f77bebcad1580eff (patch)
tree2027a9e302367a58e8ac02cb6a2c032f3cb594d5 /source/blender/imbuf/IMB_imbuf_types.h
parent6786f92fe569cbed1ad9fbc12392cc54a3eb58d0 (diff)
support for reading/writing image resolution (dpi), for PNG and TIFF,
only RNA access currently 'image.resolution'.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf_types.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf_types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h
index 52afe2ed854..5717a92db54 100644
--- a/source/blender/imbuf/IMB_imbuf_types.h
+++ b/source/blender/imbuf/IMB_imbuf_types.h
@@ -93,6 +93,9 @@ typedef struct ImBuf {
char profile_filename[256]; /* to be implemented properly, specific filename for custom profiles */
#endif
+ /* resolution - pixels per meter */
+ double ppm[2];
+
/* tiled pixel storage */
int tilex, tiley;
int xtiles, ytiles;