adude Posted November 15, 2004 Posted November 15, 2004 Hi, I'm creating a program (VB.NET 2003) that needs to display a list of pictures (thumbnail size) (like one of the digital photo album programs). I've tried using PictureBoxes but they're painstakingly slow (especially when resizing, I have to adjust the location of all the thumbnails). I've experimented with DrawImage in Graphics, but how can I access each drawn item in the Graphics object. For instance, with PictureBoxes, I could say: dim ctrl as Control For Each ctrl in Me.controls If TypeOf ctrl is PictureBox Then MsgBox(PictureBox.Location.toString()) End If Next Although this is a pretty dull example, how can I access properties, methods, events of drawn items in Graphics? Do they even have props, methods, and events? For example, I couldn't find anything like a getImages() or getItems() or Items in the Graphics class. I also tried creating an ArrayList of Images... but it's properties are all ReadOnly... (I was trying to double the size of the first image in the graphics as a test) Thanks a lot. Quote
Ming_Lei Posted November 17, 2004 Posted November 17, 2004 I think with GDI+, you need to maintain your own image list and get them to be drawn when paint. 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.