T
Tulgaa
Before running the function WriteTitle(), Pic1.jpg size was 1200 kb.
But after WriteTitle(), the picture's size was 300 kb. I don't know
what is going on, tell me please!!!!
----------------------------- Code is here
----------------------------
dim spath as string="c:\pic1.jpg"
Private function WriteTitle() as string
Using bmp As Bitmap = Image.FromFile(sPath, True)
Dim g As Graphics = Graphics.FromImage(bmp)
' r,sf,myfont are declered in the out of function
g.DrawString("hello world", myfont, Brushes.Black, r, sf)
bmp.Save("c:\pic2.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
bmp.Dispose()
End Using
return "c:\pic2.jpg"
End function
----------------------------------------------------------------------------
.... Tulgaa
But after WriteTitle(), the picture's size was 300 kb. I don't know
what is going on, tell me please!!!!
----------------------------- Code is here
----------------------------
dim spath as string="c:\pic1.jpg"
Private function WriteTitle() as string
Using bmp As Bitmap = Image.FromFile(sPath, True)
Dim g As Graphics = Graphics.FromImage(bmp)
' r,sf,myfont are declered in the out of function
g.DrawString("hello world", myfont, Brushes.Black, r, sf)
bmp.Save("c:\pic2.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
bmp.Dispose()
End Using
return "c:\pic2.jpg"
End function
----------------------------------------------------------------------------
.... Tulgaa