by Chenqi Jia
Oct 15, 2012
If you're looking to do some basic bitmap stuff, wouldn't it be much easier to use GDI+ to do it?
If you want to draw a line in a bitmap, how about the following:
Dim bmp As New Bitmap("C:\somewhere\blahblah\image.bmp") Dim G As Graphics = Graphics.FromImage(bmp) G.DrawLine(Pens.Black, 10, 10, 100, 70) bmp.Save("C:\somewhere\blahblah\image.bmp") bmp.Dispose() G.Dispose()
Dim bmp As New Bitmap("C:\somewhere\blahblah\image.bmp")
Dim G As Graphics = Graphics.FromImage(bmp)
G.DrawLine(Pens.Black, 10, 10, 100, 70)
bmp.Save("C:\somewhere\blahblah\image.bmp")
bmp.Dispose()
G.Dispose()
Different applications have different APIs, so I can definitely see the point of remoting into Photoshop, but Paint.exe....
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Cancel
David Rutten
If you're looking to do some basic bitmap stuff, wouldn't it be much easier to use GDI+ to do it?
If you want to draw a line in a bitmap, how about the following:
Different applications have different APIs, so I can definitely see the point of remoting into Photoshop, but Paint.exe....
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Oct 15, 2012