neither one worksOriginally posted by dynamic_sysop
or without even needing to delete the exsisting file ...
VB Code:
[color=blue]Dim[/color] img [color=blue]As[/color] Image = Image.FromFile("C:\tester.bmp") [color=blue]Dim[/color] bmp [color=blue]As[/color] Bitmap = img bmp.Save("C:\tester.bmp")
this is what I tried, I tried the one above in the quatations also:
gives the same error on the last line, after it has deleted the fileVB Code:
Dim fs As New FileStream("C:\colormatrix.jpg", FileMode.Open) Dim img As Image = Image.FromStream(fs) fs.Close() File.Delete("C:\colormatrix.jpg") img.Save("C:\colormatrix.jpg")only creates a 0kb file
this is stupid! I dont even want to delete teh file first, why the heck does this happen? it's nonsense![]()
![]()




only creates a 0kb file
Reply With Quote