简体   繁体   English

如何从ImageMagick Core中的图像中提取图像信息

[英]How to extract Image Info from Image in ImageMagick Core

I think it's very easy, but can't find how in the documentation or by Googling it. 我认为这很容易,但是无法在文档中或通过谷歌搜索找到它。

I and interested in only low level MagicCore not MagicWand. 我只对低级别的MagicCore感兴趣,而不对MagicWand感兴趣。

The Image structure has a property image_info that points to the ImageInfo used during ReadImage . Image结构有一个属性image_info指向ImageInfo期间使用ReadImage

To extract the ImageInfo , use CloneImageInfo . 要提取ImageInfo ,使用CloneImageInfo

ImageInfo * myInfo;
myInfo = CloneImageInfo(myImage->image_info);
if (myInfo == (ImageInfo *)NULL) { // Error handle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM