brightness adjusting on black & white images vb.net
marfi95_at_yahoo.com
Date: 01/06/05
- Next message: Wayne Shook via DotNetMonster.com: "Re: make a transparent control"
- Previous message: Teis Draiby: "Can I make a greyscale Graphics object"
- Next in thread: Bob Powell [MVP]: "Re: brightness adjusting on black & white images vb.net"
- Reply: Bob Powell [MVP]: "Re: brightness adjusting on black & white images vb.net"
- Reply: C-Services Holland b.v.: "Re: brightness adjusting on black & white images vb.net"
- Maybe reply: Bob Powell [MVP]: "Re: brightness adjusting on black & white images vb.net"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 06 Jan 2005 04:46:37 GMT
I'm trying to implement some code in vb.net to allow the user to
adjust the brightness or contrast on an image (through the use of a
slider) that is already black & white in the bitmap. I have tried
to use the colormatrix and even down to the pixel using GetPixel and
SetPixel in system.drawing, but I'm really not up on using gdi+ and
haven't really gotten anywhere. I've seen some examples for VB6, but
I need vb.net.
I know that all the pixels are either 255 or 0 already since its black
and white, but if you are adusting the brightness, how do you decide
which pixels to turn white or black based on how much the user wants
to brighten/darken. I've got code to read & set each pixel, but I
just dont know what to use to decide what to set the new pixel to.
If you someone could post some code or point me to a good example that
explains whats going on, I would be most appreciative.
Thanks,
Mark
- Next message: Wayne Shook via DotNetMonster.com: "Re: make a transparent control"
- Previous message: Teis Draiby: "Can I make a greyscale Graphics object"
- Next in thread: Bob Powell [MVP]: "Re: brightness adjusting on black & white images vb.net"
- Reply: Bob Powell [MVP]: "Re: brightness adjusting on black & white images vb.net"
- Reply: C-Services Holland b.v.: "Re: brightness adjusting on black & white images vb.net"
- Maybe reply: Bob Powell [MVP]: "Re: brightness adjusting on black & white images vb.net"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|