In a picturebox control? I don't think that this is possible. What I can suggest is that you modify the attributes of the image (e.g. GDI+) and then reload the image into the picturebox control.
Since you're posting in the GDI+ section, I assume you do want to use GDI+ to alter the image. Here's a link to some sample code: ColorMatrix Basics - Simple Image Color Adjustment.
Doing the brightness is pretty simple, just alter the RGB values by the same amount using the 'translate' function at the provided link. Doing the contrast will be a bit more difficult since it entails lightening the lighter pixels and darkening the darker pixels (or vice versa).
Thanks for the link it helped and clarified a lot and as far as my being using GDI, I couldn't think of anything else except GDI+ and was trying for some time with color matrix. Is there any other alternative ways of accomplishing this and which could be the best way to achieve this... any suggestions will be appreciated.
I have some code that may help <a href="http://ess-image.com/Graphic/Image_Processing/Adjust_Brightness.aspx"> Adjust Brightness</a>
If this does not do the job let me know
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.