处理大图片... [英] work with big pictures ...

查看:80
本文介绍了处理大图片...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:-)

我有一张非常大的jpg图片-代表购物中心的工程图-
尺寸:17000 * 13500像素
大小:140 MB

我需要在屏幕上显示此图片的一部分,用户可以通过鼠标移动以查看其他部分,并进行放大和缩小,并在此图表上添加点
外观可能像google maps或bieng map ......

通过c#....我应该从哪里开始?
以及您能给我什么建议?

我非常感谢您的帮助:-)

hi everyone :-)

i have a very large jpg picture -represent engineering chart of mall-
the dimentions : 17000 * 13500 pixel
the size : 140 MB

i need to show a part of this picture on screen and the user can move by mouse to see the another parts and zoom in and out and add points at this chart
may be the appearance like google maps or bieng map ......

by c# .... from where should i start ?
and what the advices you can give to me ?

i am very thankful for help :-)

推荐答案

我最好的建议是:远离像素图形,尤其是在工程图的情况下.您可以轻松地以惊人的速度渲染矢量模型的图像.如果使用WPF,这特别容易;在这种情况下,您无需担心渲染,缩放,平移-所有这些都已经为您完成.

很少有其他想法:您可以使用开源Incskape创建/使用SVG图形并将其转换为XAML,请参见 http://en.wikipedia .org/wiki/Inkscape [ ^ ], http://www.inkscape.org/ [
My best advice would be: go away from pixel graphics, especially if this is engineering chart. You can easily render the image our of vector model with blazing speed. It is especially easy if you use WPF; in this case you won''t need to take care about rendering, zoom, panning — all this is already done for you.

Few more ideas: you can create/use SVG graphics and convert it to XAML using open-source Incskape, see http://en.wikipedia.org/wiki/Inkscape[^], http://www.inkscape.org/[^], and you can use XAML in your product during design-time and run-time. You can even allow your user the create custom image in XAML and include them on your charts during run-time; and this is easy to achieve. You actually don''t even need to know XAML format to do that.

How about that?

—SA


这应该让您忙一会儿:

"C#图片"的Google几乎有5千1百万个Google搜索结果 [
This should keep you busy for a while:

Almost 51 MILLION google results for "C# images" [^]


这篇关于处理大图片...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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