[英]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.