Shinju
Member
Hi guys and gals. I'm a new member and also a bit of a newbie at VB.NET. I'm working in Visual Basic 2008 Express and I'm having some graphic problems.
I won't post any code just yet in case it's a known issue with a known solution (which I suspect it is)...
But I'm writing a scrolling list with icons (32x32) I have the images all stored in a single picturebox and I'm grabbing them out with drawimage. But the number of items in the list is very large (about 3000), each with individual icon so the picture I'm getting them from is also very large (640x4608 or 144 rows of 20 icons). With this large image drawimage is incredibly slow.
I've tried a test with a much smaller number of icons in the image and its so so much faster, so I'm pretty sure this is where the problem is. Is there a known solution if so what?
Would splitting the large picture into a number of smaller pictures help? If so can I create an array of picture boxes? - control arrays dont seem to be part of VB.NET - if this is a solution I could do with a hand understanding their replacement.
Thanks in advance
I won't post any code just yet in case it's a known issue with a known solution (which I suspect it is)...
But I'm writing a scrolling list with icons (32x32) I have the images all stored in a single picturebox and I'm grabbing them out with drawimage. But the number of items in the list is very large (about 3000), each with individual icon so the picture I'm getting them from is also very large (640x4608 or 144 rows of 20 icons). With this large image drawimage is incredibly slow.
I've tried a test with a much smaller number of icons in the image and its so so much faster, so I'm pretty sure this is where the problem is. Is there a known solution if so what?
Would splitting the large picture into a number of smaller pictures help? If so can I create an array of picture boxes? - control arrays dont seem to be part of VB.NET - if this is a solution I could do with a hand understanding their replacement.
Thanks in advance