我使用daylipilot月份,我想要一个jpeg,但我有一个记忆流
我有错误
GDI +中发生了一般性错误。当我保存它
Dim test As Bitmap
Dim e1 As Image
Dim image As MemoryStream
image = DayPilotMonth.Export(ImageFormat.Jpeg)
e1 = System.Drawing.Bitmap.FromStream(image)
e1.Save("/APP/temp/test.jpg", ImageFormat.Jpeg)
如何从内存流中保存图像?
答案 0 :(得分:0)
Dim e1 As Image
Dim image As MemoryStream
image = dpmStructures.Export(ImageFormat.Jpeg)
e1 = System.Drawing.Bitmap.FromStream(image)
e1.Save(My.Computer.FileSystem.SpecialDirectories.Temp & "\calgeneral.jpg", ImageFormat.Jpeg)