Link to home
Start Free TrialLog in
Avatar of rublin
rublin

asked on

Creating large bitmaps: "Incorrect parameter" crash on Win98

A code like this

...
    tmpBitmap := TBitmap.Create;
    tmpBitmap.Width := AnotherImage.Width;
    tmpBitmap.Height := AnotherImage.Height;
...

crashes when the Height is assigned. If I swap lines with Height and Width, then it crashes when assigning Width. Obviously, when TBitmap tries to resize itself to this new size, there is not enough resources.

Any suggestions leading to changing the image itself (like decreasing image quality) are not acceptable.

It looks like limitation of the system, but if somebody knows how to work around it, I'll gladly award 250 points for that.

Thank you.
Avatar of Stuart_Johnson
Stuart_Johnson

I've seen another question about this.  I can't remember the solution though....  I'll see if I can find something on it.
ASKER CERTIFIED SOLUTION
Avatar of Stuart_Johnson
Stuart_Johnson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
(I think I missed some of the comment when I copied that out of the document.)
Avatar of rublin

ASKER

Thanks. It helped.
Thanks, Rublin!