正在加载图片 [英] loading Image

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

问题描述

大家好,
我需要通过互联网加载并发送图像.做到这一点的最佳方法是什么.
如何将图像作为流读取并在该流中的另一个应用程序中创建.
请给我一个示例.

首先问候...

Hi all,
I need to load and send the image over the internet. What is the best way to do that.
How can read the image as stream and create it in another application from the stream.
Please give me an example.

Bst regards...

推荐答案

如何将图像作为流读取:

How to read the image as stream:

Image image = Image.FromFile( @"c:\image.bmp" );
using(MemoryStream stream = new MemoryStream())
{
 // Save image to stream.
 image.Save( stream, ImageFormat.Bmp );
}


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

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