在vb.net中从文件写入/读取图像

编程入门 行业动态 更新时间:2024-10-24 09:16:51
本文介绍了在vb中从文件写入/读取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好所有访客 我在将图像文件写入vb中的文件时遇到问题. 我在D:\ images \ myimg.jpg上有一个图像文件,并且我想使用vb将我的图像(myimg.jpg)写入文件(我写入图像文件而不是图像路径) 有人知道我如何在vb中将图像写入文件吗? 谢谢

Hi all visitors i have problem with write image file to file in vb. i have an image file on D:\images\myimg.jpg and i want to write my image(myimg.jpg) to file using vb(i write image file not path of image) Anybody know to how i can write image to file in vb? Thanks

推荐答案

您需要使用System.IO.ReadAllBytes和System.IO.WriteAllBytes函数. msdn.microsoft/en-us/library/system. io.file.readallbytes.aspx [ ^ ] U need to Use System.IO.ReadAllBytes and System.IO.WriteAllBytes function. msdn.microsoft/en-us/library/system.io.file.readallbytes.aspx[^]

您可以看到此链接 点击 you can see this links Click

更多推荐

在vb.net中从文件写入/读取图像

本文发布于:2023-11-06 14:32:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563952.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像   文件   vb   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!