diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-13 18:27:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-13 18:27:12 +0400 |
commit | 05d004fd14876d9df0ca1028f77bebcad1580eff (patch) | |
tree | 2027a9e302367a58e8ac02cb6a2c032f3cb594d5 /source/blender/imbuf/IMB_imbuf_types.h | |
parent | 6786f92fe569cbed1ad9fbc12392cc54a3eb58d0 (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.h | 3 |
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; |