简体   繁体   中英

What's the best/fastest way to get the count of tiff tags from a tif image with LibTiff.Net?

Just as stated in the title, what is the best and fastest way to get the count of tiff tags in an image?

Currently the only way I know of is trying to query tags 1-65534 using the GetField() method and simply counting that way. Is there some type of array or list of tags that I can access from the Tiff object in the LibTiff.Net library?

Your current approach is the only one available through API. So, obviously, it's the fastest one.

Tiff class maintains internal representation of current image directory (page). This information contains all found tags. But probably it's not worth the hassle to try to get to that information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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