小编z1x*_*1x2的帖子

Read a tiff file's dimension and resolution without loading it first

How to read a tiff file's dimension (width and height) and resolution (horizontal and vertical) without first loading it into memory by using code like the following. It is too slow for big files and I don't need to manipulate them.

Image tif = Image.FromFile(@"C:\large_size.tif");
float width = tif.PhysicalDimension.Width;
float height = tif.PhysicalDimension.Height;
float hresolution = tif.HorizontalResolution;
float vresolution = tif.VerticalResolution;
tif.Dispose();
Run Code Online (Sandbox Code Playgroud)

Edit:

Those tiff files are Bilevel and have a dimension of 30x42 inch. The file sizes are about …

c# memory tiff

8
推荐指数
1
解决办法
1万
查看次数

什么协议用于打电话回家?

Kindle 3 WiFi使用什么协议与Amazon通信并在kindle.com/free.kindle.com帐户上下载文件?

我知道我可以使用一些网络嗅探软件找到它,但我只需要快速回答.

amazon protocols kindle wifi

6
推荐指数
1
解决办法
828
查看次数

标签 统计

amazon ×1

c# ×1

kindle ×1

memory ×1

protocols ×1

tiff ×1

wifi ×1