mauleTTT Posted June 9, 2003 Posted June 9, 2003 Monochrome BMP Hi all! Anyone knows the way to transform any type of BMP picture (with colours) into a monochrome type picture ¿? Thanks Quote
*Gurus* divil Posted June 9, 2003 *Gurus* Posted June 9, 2003 Check out Bob Powell's GDI+ faq. http://www.bobpowell.net/gdiplus_faq.htm Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
ThePentiumGuy Posted June 9, 2003 Posted June 9, 2003 edit with paint save as Monochrome Bitmap unless ur trying to do that within the program: just use 2 bitmaps 1 colr and 1 mono. and then use the GDI+ to display the mono ontop of te color Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Hamburger1984 Posted June 12, 2003 Posted June 12, 2003 There's another quite easy solution: Dim source As New Bitmap("C:\myColoredImage.jpg") Dim dest As New Bitmap(source.Width, source.Height) Dim destGraph As Graphics = Graphics.FromImage(dest) ControlPaint.DrawImageDisabled(destGraph, source, 0, 0, Color.Empty) destGraph.Dispose() dest.Save("C:\myGrayscaleImage.jpg") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.