Hello
What function form Image Magick c++ API allows to get the information of number of bytes per color of the image.
I thought that GetImageInfo() is designed for this purpose, however it "initializes image_info to default values". How get the true value eg. read the image header.
Best regards
Cuma
how get quantum depth information
-
- Posts: 4
- Joined: 2010-11-18T14:55:19-07:00
- Authentication code: 8675308
Re: how get quantum depth information
The Magick++ API call to return the image depth is modulusDepth():
- cout << image.modulusDepth() << endl;
-
- Posts: 4
- Joined: 2010-11-18T14:55:19-07:00
- Authentication code: 8675308
Re: how get quantum depth information
In this case on my box the compilator says:magick wrote:The Magick++ API call to return the image depth is modulusDepth():
- cout << image.modulusDepth() << endl;
cimmg.cpp:391: error: ‘struct _Image’ has no member named ‘modulusDepth’
Maybe I have older version of Image Magick where Image is not a class. Thank to this error after few trials finally I have find the solution:
(*image).depth
Thanks for help
Cuma