picturebox colors

What do you mean, the colours aren't the original? The image should be preserved fine, exactly as you set it. That's always been the behaviour I've experienced.
 
take a screenshot of your screen
crop it to have only a small square of about 10x10 pixel
save it as bitmap

the cropped image must be only of an area of the screen like the background of the 'start' button or the background of the taskbar
that color is also the default background of a windows form
the color named "control" inside visual studio

now: file, new, project, windows application
put there a picturebox, and put inside it that bitmap
it should be a 10x10 image of the same color of the form's background color, but it isn't, at least here, it appears brighter

i'm running windows 2000 with visual studio .net and the bitmap is 24bit (i've tried with many formats, bmp gif png emf, and made under paint shot pro and ms paint)
and i tried also with the picturebox backgroundimage and panel's backgroundimage, same behaviour
..I'm getting mad :)
thanks for any help!

Pierpaolo
www.abruzzesi.com
www.daimmo.it
 
Matches here no problems...

Instead of using a picturebox, can you verify that the saved BMP matches the background color of your form? Take a screenshot of your form and get it next to your saved bitmap in your favorite paint program to compare. I can't imagine why they would be different...

-Ner
 
the saved bitmap is perfect
i wonder if the problem is on my computer
i've made my first app in vb.net, where i have this problem
try to run it and tell me if the magnify feature works or not
point the cursor over the form and press "z"
if not working, the magnify window should give you a brighter square
if working, the square would look like the rest of the form
download it from http://www.abruzzesi.com/easycolor/
if you look at the screenshot you can also notice the wrong behaviour
thanks a lot!
Pierpaolo
 
Back
Top