编辑使用System.Drawing中多页TIFF图像 [英] Edit multipage TIFF image using System.Drawing
问题描述
我特林从图像创建图形编辑多页TIFF,但我遇到了错误信息:一个图形对象不能从具有索引像素格式的图像创建
I'm tring to edit multipage tiff by creating Graphics from the image, but i encountered the error message: "A Graphics object cannot be created from an image that has an indexed pixel format."
如何编辑多页TIFF?
How can i edit multipage tiff?
推荐答案
错误:图形对象不能从具有索引像素格式的图像创建的
...无关。用它做是一个多页TIFF。索引图像格式,意味着它有一个调色板,例如它是一个256的彩色图像。 A 1位图像。(B和W)也将算作具有2种颜色的调色板
...has nothing to do with it being a multipage TIFF. An indexed image format means it has a palette of colours, e.g. it's a 256-colour image. A 1-bit image (B&W) would also count as having a palette of 2 colours.
您不能执行图形
在使用调色板图像的操作,他们会需要转换为15位或更多的色彩深度优先。
You can't perform Graphics
operations on images that use a palette, they'd need to be converted to 15-bit or more colour depth first.
这篇关于编辑使用System.Drawing中多页TIFF图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!