更新图片 [英] Update image
本文介绍了更新图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Badri.我有问题:
如何在VB.NET中替换图像?
我正在使用以下代码保存图像:
Hi I''m Badri. I have a problem:
how do I replace an image in VB.NET?
I am using this code for saving the image:
Dim fs As New FileStream(path, FileMode.OpenOrCreate, FileAccess.Read)
Dim br As New BinaryReader(fs)
Dim bytes() As Byte
bytes = br.ReadBytes(fs.Length)
cu.Picture = bytes
请给我代码更新图片.
谢谢.
Please give me code for updating the image.
Thanks.
推荐答案
''cu is your picturebox name
PictureBox1.Image = Image.FromFile(path)
311220写道:
如何在VB.NET中替换图像?
how do I replace an image in VB.NET?
只是覆盖内容!假设替换为重新插入.
Just overwrite the content! Assume replacing as re-inserting.
这篇关于更新图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文