D
Dale Atkin
As part of a program I'm writing, I have a picture box, loaded up with an
image. The picture box is set to automatically size the image in it to fit
the bounds of the picture box.
The picture box sits inside another container.
To pan the image, I'm adjusting the left/right properties of the image.
To zoom the image, I'm adjusting the height and width.
The problem comes, when I zoom past a certain point (haven't figured out
exactly what point yet), I get the error "Not enough storage space to
process the command".
I'm fine with having limited zoom capability, but I obviously need to set
some kind of maximum height/width on the picture box so that I don't
generate this error.
Anyone know what the magic number would be? Or how to determine it
(hopefully not the brute force approach)?
Dale
image. The picture box is set to automatically size the image in it to fit
the bounds of the picture box.
The picture box sits inside another container.
To pan the image, I'm adjusting the left/right properties of the image.
To zoom the image, I'm adjusting the height and width.
The problem comes, when I zoom past a certain point (haven't figured out
exactly what point yet), I get the error "Not enough storage space to
process the command".
I'm fine with having limited zoom capability, but I obviously need to set
some kind of maximum height/width on the picture box so that I don't
generate this error.
Anyone know what the magic number would be? Or how to determine it
(hopefully not the brute force approach)?
Dale