Picture-strange
-
I have a problem.. a strange problem.. a have an application with a picture box.. when i build it everithing is perfect.. so i build it, and i make a copy of the program, and move it to some other folder.. when i run my application, the picture looks really bad.. can anyone help? pls..:)
-
I have a problem.. a strange problem.. a have an application with a picture box.. when i build it everithing is perfect.. so i build it, and i make a copy of the program, and move it to some other folder.. when i run my application, the picture looks really bad.. can anyone help? pls..:)
What dou you mean by looking really bad?.
-
What dou you mean by looking really bad?.
-
I mean that other colors appear instead of the ones that were supost to.. and the contours are smudged... the really strange thing is, that if i keep the debug folder opened the picture displays correctlky (it's a picture on a form that loads on startup
-
I think you specified the value of the picturebox image at design time. Instead of that, load and set your image at run time. this will retain the quality. - Malhar
-
OK:) Now, supose i don't want anybody to be able to mofify my picture, what should i do? :) Hope i'm not bugging you too much :D :)
Rename .jpg to .dll ..!!!! Just kidding!! You can embed the image as a project resource by making image part of the project and extract the image just as you were accessing file. System.Reflection.Assembly asm = GetType().Assembly; StreamReader stream = new StreamReader(asm.GetManifestResourceStream("FULLY_QUALIFIED_NAMESPACE.FileName.jpg"));
-
Rename .jpg to .dll ..!!!! Just kidding!! You can embed the image as a project resource by making image part of the project and extract the image just as you were accessing file. System.Reflection.Assembly asm = GetType().Assembly; StreamReader stream = new StreamReader(asm.GetManifestResourceStream("FULLY_QUALIFIED_NAMESPACE.FileName.jpg"));
-
Rename .jpg to .dll ..!!!! Just kidding!! You can embed the image as a project resource by making image part of the project and extract the image just as you were accessing file. System.Reflection.Assembly asm = GetType().Assembly; StreamReader stream = new StreamReader(asm.GetManifestResourceStream("FULLY_QUALIFIED_NAMESPACE.FileName.jpg"));
-
:(( i still can't make that picturebox look good... i managed to embed it, and now i set it's value at run-time.. pls help :)
-
Huh .. strange .. is it a very large or a high-DPI picture? I can certainly give it a try if you dont mind uploading the image.
-
Huh .. strange .. is it a very large or a high-DPI picture? I can certainly give it a try if you dont mind uploading the image.
-
:)) thank you verry much. I solved the problem. The problem was that the form had a transparent color... white! so.... sometimes it showed correctly, sometimes not :)) thnak you again, hope i didn't boder you too much :):-D
-
Oh .. ok. I tried to reproduce the behavior but couldn't so i was researching to see if it was PNG related issue.. Anyways, glad you found the culprit. - malhar