jimbo2k Posted March 25, 2005 Posted March 25, 2005 When I load an image into a picturebox through code, the images quality is diminished. I have the same image loaded into a different picturebox from design time, yet its good quality. How do I preserve the quality when loading from an image list, during run-time? Thanks! Quote
Leaders Iceplug Posted March 29, 2005 Leaders Posted March 29, 2005 I only use the imagelist for storing some icon-like images for use in a listview or something. What are you using the imagelist for and can you use an array of bitmaps instead? I have had an issue where the imagelist kind of resizes the picture and makes it lose its detail. Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
RedLeader Posted March 29, 2005 Posted March 29, 2005 Hi jimbo2k, I have the same Problem in C# and no reson why this is happend Quote
jimbo2k Posted March 29, 2005 Author Posted March 29, 2005 I only use the imagelist for storing some icon-like images for use in a listview or something. What are you using the imagelist for and can you use an array of bitmaps instead? I have had an issue where the imagelist kind of resizes the picture and makes it lose its detail. Can you give me a sample declaration of the array and how to add bitmaps/jpg's. I'm not very familiar with arrays yet :o Thanks! Quote
Leaders snarfblam Posted March 29, 2005 Leaders Posted March 29, 2005 For reasons beyond me, the imagelist does not store the images in their origional format. Go to the imagelist property and set the ColorDepth property to 24 or 32 bits per pixel. Quote [sIGPIC]e[/sIGPIC]
jimbo2k Posted March 30, 2005 Author Posted March 30, 2005 For reasons beyond me' date=' the imagelist does not store the images in their origional format. Go to the imagelist property and set the ColorDepth property to 24 or 32 bits per pixel.[/quote'] Ive tried that but still no good :confused: Quote
Leaders snarfblam Posted March 30, 2005 Leaders Posted March 30, 2005 Do you have images with different resolutions in the imagelist? This might cause problems. Quote [sIGPIC]e[/sIGPIC]
jimbo2k Posted March 30, 2005 Author Posted March 30, 2005 Do you have images with different resolutions in the imagelist? This might cause problems. Nope, I only have 2 images in the collection so far, until I get this sorted out and both are 96dpi. Any thoughts on what the above poster said about an array list ? Quote
Leaders snarfblam Posted March 30, 2005 Leaders Posted March 30, 2005 What i should have asked is are the images the same dimensions? Are they 96 dpi or 96 px by 96 px? If they have different dimensions then one if not both will be stored at a smaller size than the original file. Quote [sIGPIC]e[/sIGPIC]
jimbo2k Posted March 30, 2005 Author Posted March 30, 2005 What i should have asked is are the images the same dimensions? Are they 96 dpi or 96 px by 96 px? If they have different dimensions then one if not both will be stored at a smaller size than the original file. They are both 72 px by 28 px EDIT: turns out the 2nd picture was a few pixels off the first pictures size, after correcting this and making them the exact same size, it works nicely. Cant thank you enough marble, for the dedication! 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.