如何在文本框中加载Tiff文件? [英] How to load Tiff files in textbox?

查看:103
本文介绍了如何在文本框中加载Tiff文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在文本框控件中加载tiff文件。

解决方案

你不能,不能以人类可读的方式。

文本框就是:包含和显示文本的框。 TIFF文件是一种图形格式,包含很少或没有人类可读文本,需要显示在Image容器(如PictureBox)中。



如果你正在尝试以可能的十六进制格式显示TIFF文件的内容,但这将是大量数据(大约是文件中的字节数乘以3加上文件中地址的基于行的开销)。 br />
因此,如果你有一个50KB的TIFF文件,你会要求用户查看150~160 KB的十六进制文本。我?作为用户,我告诉你要坚持下去! :笑:

How to load the tiff files in textbox control.

解决方案

You can't, not in a human readable manner.
A textbox is just that: a box that contains and displays text. A TIFF file is a graphics format that contains little or no human readable text and which needs to be displayed in an Image container such as a PictureBox.

If you are trying to display the content of a TIFF file in a hexadecimal format that's possible, but it would be a lot of data (approximately the number of bytes in the file times three plus a line based overhead for the "address" within the file).
So if you have a 50KB TIFF file, you would be asking the user to look through 150~160 KB of hexadecimal text. Me? As a user I'd tell you to stick it! :laugh:


这篇关于如何在文本框中加载Tiff文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆