brightness adjusting on black & white images vb.net
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.
- Re: How to calculate contrast in different parts of an image in Matlab?
... calculate local contrast all over the image, ... Then there is the question as to what is the relation to pixel amplitude to the brightness of the original light at that spot? ... Assuming a 1:1 relation between pixel amplitude, I1, and the brightness, then the contrast between two elements of luminance I1 and I2, can be declared to be /. ... In photography, there has long been the concept of "Gamma", which I believe is the power of a curve that matches the change of screen pixel brightness, x, to scene element brightness,y. ...
- brightness adjusting on black & white images vb.net
... adjust the brightness or contrast on an image (through the use of a ... slider) that is already black & white in the bitmap. ... and white, but if you are adusting the brightness, how do you decide ... I've got code to read & set each pixel, ...
- Re: Converting to NTSC - Why are the luminance values (Y) never greater than 1.00?
... RGB brightness values between 0 and 1, ... then the luminance will also be scaled ... true luminance of the given pixel, if I have a jpg image to begin ... you mention that your jpeg image has integral ...
- Re: Gaming on LCDTV
... Pixel size was one reason I stopped at the 26 inch. ... The monitor has several brightness modes. ... complaints about the picture except perhaps the filtering ...
- Re: Gaming on LCDTV
... Rob ... > Pixel size was one reason I stopped at the 26 inch. ... > The monitor has several brightness modes. ...