如何将Picturebox的图像替换为图片文件. [英] how I can replace the image of picturebox into a picture file.

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

问题描述

大家好,
好,让我们开始我的问题.我在Picturebox工具中读取了图像,并且在文件夹中有一个logo.jpg文件.现在,我需要知道如何将picturebox的图像替换为logo.jpg文件.

预先感谢.

Hi all,
Ok let''s start my problem. I read an image in picturebox tool and I have a logo.jpg file in a folder. Now I need to know how I can replace this image of picturebox into logo.jpg file.

Thanks in advance.

推荐答案

myPictureBox.Image.Save(path, System.Drawing.Imaging.ImageFormat.Jpeg);


您可以通过发送图片框文件名logo.jpg来替换它.
You can replace it through sending the picture box file name name logo.jpg.


这篇关于如何将Picturebox的图像替换为图片文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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