Thanks, this indeed works as the depth() function does.
However, I consider that this is a bit weird. In a certain way, imageType is used for loading while colorSpace is used for saving. Do you know why different enumerations are considered for loading and saving?
Thanks and cheers
Search found 2 matches
- 2011-02-24T08:40:05-07:00
- Forum: Users
- Topic: [Magick++/ImageCore] Get colorspace attribute from file
- Replies: 2
- Views: 5004
- 2011-02-23T17:14:07-07:00
- Forum: Users
- Topic: [Magick++/ImageCore] Get colorspace attribute from file
- Replies: 2
- Views: 5004
[Magick++/ImageCore] Get colorspace attribute from file
Hello, I would like to get some information about an image stored in a file using Magick++ or ImageCore interfaces. If I do something like: Image image("myimage.pgm"); I can get the dimensions using: image.rows(); image.height(); However, the colorspace is set by default to RGB, whereas pgm images ...