When I try to work with big images I get 'EOutOfResources' - Not enough storage is available.
I reproduce it with simple demo-app:
- Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var
Bitmap: TBitmap; { Temporäre Variable für das Bitmap }
begin
Bitmap := TBitmap.Create; { Das Bitmap-Objekt erstellen }
Bitmap.Width := 2048; { Anfangsbreite... }
Bitmap.Height := 10958; { ...und Anfangshöhe zuweisen }
Image1.Picture.Graphic := Bitmap; { Das Bitmap dem Bild-Steuerelement zuweisen }
end;
With value a bit higher than 10958 it crashes.
Is there a limit with delphi?