
Picture Box Height Limitation on Win98?
Quote:
> If I set the height of a picture box to 128000 on Win98,
> then I get an error when I try to write to it with Print.
> If I set it to 62,000 everything works fine.
> Does anyone know anything about this apparent limitation?
> On XP I get no error.
> thanks
> M. L. Harvey
Hi,
I suspect that the problem lies in the fact that VB's PictureBox control
stores its image in a "Device-Dependent Bitmap" ("DDB") rather than a
"Device-Independent Bitmap" ("DIB").
The advantage of DDBs is that they are much faster than DIBs, the
disadvantage is that DDBs are limited to a fixed maximum size, presumably to
ensure that a single graphic does not use up all available system
resources/memory.
I have worked around this problem in the past by splitting large graphics
into chunks which will fit into the largest PictureBox which can be created.
Hope that helps,
Dave.