Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

  • Leaders
Posted

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.

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Posted
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!

  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]
Posted
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:

Posted
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 ?

  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]
Posted
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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...