pierpaolod Posted March 19, 2003 Posted March 19, 2003 hi i noticed that when i put a picture (image or backgroundimage) in a picturebox, or a backgroundimage in a label, the colors aren't the original what can i do ? thanks Pierpaolo http://www.daimmo.it http://www.abruzzesi.com Quote
*Gurus* divil Posted March 19, 2003 *Gurus* Posted March 19, 2003 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. 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
pierpaolod Posted March 19, 2003 Author Posted March 19, 2003 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 http://www.abruzzesi.com http://www.daimmo.it Quote
*Experts* Nerseus Posted March 19, 2003 *Experts* Posted March 19, 2003 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 Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
pierpaolod Posted March 19, 2003 Author Posted March 19, 2003 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 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.