0

Sometimes, my users will use a 16000x16000 picturebox (which is located in a Panel, for autoscroll).

The picturebox is used like a tiles map. On it, I draw tiles for making maps (yes, it is a map editor)...

But the mere idea of being able to create a picturebox that huge, is terrible for performance.

I am told to "only load the visible area", but, what do they mean by "load" on a picturebox? Can I control that?

Saturn
  • 17,888
  • 49
  • 145
  • 271

1 Answers1

4

You don't want to let the picturebox display complete images. Instead, you use the Paint event to draw the visible image portion yourself

Timbo
  • 27,472
  • 11
  • 50
  • 75