VB語法,可以儲存在執行檔同一資料夾裡(bin),

如下

Set Picture2.Picture = Picture2.Image
SavePicture Picture2, App.Path & "\sample.bmp"

 

C# 儲存圖片於當前資料夾
pictureBox1.Image.Save(Application.ExecutablePath + "sample.bmp");

arrow
arrow
    全站熱搜

    JL8051 發表在 痞客邦 留言(0) 人氣()