Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   tif file mit 50.000 *50.000 pixel (https://www.delphipraxis.net/198053-tif-file-mit-50-000-%2A50-000-pixel.html)

bernhard_LA 29. Sep 2018 21:36

tif file mit 50.000 *50.000 pixel
 
Liste der Anhänge anzeigen (Anzahl: 2)
das Bild kann ich ohne Probleme z.B. mit irfaview64 öffnen
meine Anwendung mit DELPHi 10.2.1 & FMX bringt eine Fehlermeldung "EloadingBitmap failed" , kleine *.jpg, *.bmp und auch *.tif Files alles ohne Probleme




Delphi-Quellcode:
        bmpFilename := 'c:\.......';

        inputImage.Bitmap.LoadFromFile( bmpFilename );

himitsu 29. Sep 2018 22:56

AW: tif file mit 50.000 *50.000 pixel
 
Erstmal: Bitmap.LoadFromXyz lädt ausschließlich Bitmaps, da es intern immer nur ein TBitmap ist. (selbst wenn vorher was Anderes in Picture.Graphic war, dann ist es durch den Brugriff auf Picture.Bitmap nun ein Bitmap)

Picture.LoadFrom geht nach dem Typ der Datei (früher die Dateiendung und inzwischen die MagicBytes)

Oder du nimmst Picture.Graphic, packst dort vorher ein TTiffImage rein und lädst dann. (TTiffImage nehmen, erst das Bild rein und dann Zuweisen geht auch, aber bei der Größe nicht zu empfehlen, da das Tiff dann toppelt im RAM ist)



UND ganz wichtig ist, dass TImage immer nur ein TBitmap zum Anzeigen verwendet, also das TTiffImage zum Laden und für die Anzeige wird es auf ein TBitmap gemalt und das dann angezeigt ... Problem ist also der RAM, wo das entpackte Bild eventuell nicht rein passt.

KodeZwerg 29. Sep 2018 23:24

AW: tif file mit 50.000 *50.000 pixel
 
Falls das vom Vorredner nicht klappen sollte, es gäbe da noch die GDAL - Geospatial Data Abstraction Library

Damit sollte es möglich sein egal wie groß input ist, das man immer was angezeigt bekommt.

-> Bei Google suchenDelphi GDAL sollte Dir ein paar Treffer geben, YouTube hat auch ein nettes Tutorial.

Redeemer 30. Sep 2018 10:09

AW: tif file mit 50.000 *50.000 pixel
 
/Edit: Sorry, falsch. Doch 4 Byte für Abmessungen. Dachte wären nur 2.

bernhard_LA 30. Sep 2018 11:18

AW: tif file mit 50.000 *50.000 pixel
 
kann die FMX TBitmap jetzt nicht alle File Formate ? bei kleinen *.tif , *.jpg ... funktioniert mein code ja auch



http://docwiki.embarcadero.com/Libra...apCodecManager ?

http://docwiki.embarcadero.com/Libra...aphics.TBitmap

Bernhard Geyer 30. Sep 2018 11:29

AW: tif file mit 50.000 *50.000 pixel
 
Die Anwendung ist schon für 64-Bit compiliert, oder?

bernhard_LA 30. Sep 2018 19:21

AW: tif file mit 50.000 *50.000 pixel
 
ja klar - x64 Framework FMX möchte mit code dann (später) auch unter LINUX arbeiten können


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz