H
Harry Simpson
I'm having trouble reducing the size of a bitmap programmatically: The file
size of the original is 2400k.
The picture is 816x1056. 16 million colors i think. I only need grayscale
render.
Public Sub ConvertBadBitmap(ByVal FilePath As String)
Dim objPicture As New Bitmap(816, 1056,
System.Drawing.Imaging.PixelFormat.Format16bppGrayScale)
objPicture = objPicture.FromFile(FilePath)
objPicture.Save("C:\ConvertPHOTO.bmp")
End Sub
I suppose the formfile is overriding the original obj properties right? but
not familiar enough with the syntax to know better. MS sight is sure no
help!
TIA
Harry
size of the original is 2400k.
The picture is 816x1056. 16 million colors i think. I only need grayscale
render.
Public Sub ConvertBadBitmap(ByVal FilePath As String)
Dim objPicture As New Bitmap(816, 1056,
System.Drawing.Imaging.PixelFormat.Format16bppGrayScale)
objPicture = objPicture.FromFile(FilePath)
objPicture.Save("C:\ConvertPHOTO.bmp")
End Sub
I suppose the formfile is overriding the original obj properties right? but
not familiar enough with the syntax to know better. MS sight is sure no
help!
TIA
Harry