Saturn
Saturn

Reputation: 18149

Huge picturebox (16000x16000)

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?

Upvotes: 0

Views: 287

Answers (1)

Timbo
Timbo

Reputation: 28060

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

Upvotes: 4

Related Questions