如何在VB.Net中删除图像 [英] how to delete a image in VB.Net

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

问题描述

Hi Friends

我已经使用imagemap控件在asp中开发了一个应用程序.图像为tif格式,因此我编写了将其转换为JPG格式的程序,并显示了tif文件的17张图像.现在我已经在我的C盘(我位于tif图像文件的位置)上转换了图像.现在,我如何x才能删除转换后的JPG图像.

Hi Friends

Ihave developed a application in asp using imagemap control. the image in tif format, so I write programe for convert it into JPG format and dispaly the 17 images of tif file. now i have tha converted images on my c drive(where i located tif image file). now how xcan I delete the converted JPG images.

推荐答案

据我了解,您可以使用System.IO命名空间并通过文件的给定路径删除文件.
As I understood You can use System.IO namespace and delete file by givin path to file.


您需要导入System.IO,然后在代码中仅使用file.delete(fileName).

希望这会有所帮助.
You need to import System.IO and then in your code you just use file.delete(fileName).

Hope this helps.


这篇关于如何在VB.Net中删除图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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