Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Limit of 9999 pixels

Status
Not open for further replies.

craigsboyd

IS-IT--Management
Nov 9, 2002
2,839
US
There appears to be an undocumented limit on images displayed in the Image control of 9999 pixels. I was hoping this would be fixed in VFP 9, but alas it was not. For instance, try opening a tif file of 10000 pixels square in the image control, even if it is under 200 KB in size and VFP is not very graceful. What happens is that your computer spins for what seems like eternity (3-5 minutes consumes an enormous amount of system resources) and then finally a message pops up saying something about picture being corrupt, wrong format or too large.

I wonder why that is, certainly GDI+ can handle images of 10000+ pixels square (actually just one dimension needs to be larger than 9999 in order for the behavior to be displayed). Also, if MS isn't going to fix the limitation then why not document the size restriction and at the very least run some quick code to figure out that the image is too large and display the error message almost immediately rather than dragging the whole system down like that?

I realize that VFP is not necessarily considered the best option when dealing with images. However so many enhancements have come on that front, starting with VFP 8 and continuing in VFP 9, that I was hopeful this would have been addressed in the latest version.

boyd.gif

 
First I've heard of it. Had you previously put it in the wishlist at the UT?
 
danfreeman said:
First I've heard of it?
Yes, it does seem like a thing that would have been run into before now. But then I didn't run into it until late last year myself. I guess images that big are just not often used in VFP, but I have recently had to work a lot with digitized blueprints that are at least that large on many occasions. And it is indeed a restriction/bug in VFP. Well, if nothing else this thread will serve to let the next developer know that someone besides themself has run into it. Perhaps MS will hear of it and fix it in VFP 10 (assuming there will be such a thing) or someone else will come up with a workaround that I haven't thought of (besides the obvious of scaling the image).

danfreeman said:
Had you previously put it in the wishlist at the UT?
I don't visit the UT much (would be the excuse).
No (would be the answer)

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top