用文本和线条覆盖位图图像
我有这个大的 HeightMap TIFF 图像,需要在 Windows 窗体程序中显示和处理。
我在 GUI 中创建了两个控件,其中一个是 OpenGL,它从 TIFF 高度图生成 3D 场景,另一个是 pictureBox,它显示高度图本身。
问题是我需要在图片框中的图像上绘制一些线条和文本。
我读了这里如何通过以叠加方式组合两个图像来有效地创建新图像。
但我不能修改图像本身,否则 3D 环境中的结果会因这些修改而改变。该映像很大 (200MB),因此克隆它并在内存中保留两个副本是不可取的。
有什么方法可以将图像过度强加到图片框中的另一个图像上,并且仅在图片框中,而不改变原始图像?
我正在使用带有 .NET Framework 的 Windows 窗体,编程语言 C#
提前致谢。
I've got this big HeightMap TIFF image I need to show and process in my Windows form program.
I created two controls in my GUI, one of them is an OpenGL which generates a 3D scenario from the TIFF heightmap, and the other one is a pictureBox which shows the heightmap itself.
The problem is that I need to paint some lines and text over the image in the picture box.
I read here how to effectively create a new image by combining two in an overlay fashion.
But I must not modify the image itself, otherwise the results in the 3D environment would be altered by these modifications. The image is huge (200MB) so cloning it and having two copies in memory would not be desirable.
Is there any way that I can over impose an image over another in the pictureBox, and only in the pictureBox, without altering the oiriginal?
I'm using Windows Forms with .NET Framework, programming language C#
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论