Image::resolutionUnits() always undefined

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
gabriels
Posts: 1
Joined: 2012-04-23T03:34:32-07:00
Authentication code: 13

Image::resolutionUnits() always undefined

Post by gabriels »

Hi,

When i run the following code:

Code: Select all

Image image;

image.read( "path_to_file" );

cout << image.resolutionUnits() << endl;
I always get 0, which is undefined. I found a workaround on the internet - use Image::constImage()::units. It gives me the right value. I don't know if it's a bug or i'm using it the wrong way.
Post Reply