Peanutman
New member
- Joined
- Jun 18, 2005
- Messages
- 3
- Programming Experience
- 3-5
I have a bitmap loaded into memory by using the following code:
I would like to convert this bitmap in memory to a monochrome bitmap (black/white) and display it in a picbox.
The problem is i have no idea how to do this. Do i have to it pixel by pixel? or is there some cool VB.Net funtion to convert it to black/white.
Can anyone put me on the correct path pls.
Reinout,
VB.NET:
Data = Clipboard.GetDataObject()
If Data.GetDataPresent(GetType(System.Drawing.Bitmap)) Then
bmap = CType(Data.GetData(GetType(System.Drawing.Bitmap)), Image)
Dim g As Graphics = Graphics.FromImage(bmap)
Endif
I would like to convert this bitmap in memory to a monochrome bitmap (black/white) and display it in a picbox.
The problem is i have no idea how to do this. Do i have to it pixel by pixel? or is there some cool VB.Net funtion to convert it to black/white.
Can anyone put me on the correct path pls.
Reinout,