Autor Beitrag
Ich Bins
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 197

Win XP Prof
D5 Prof
BeitragVerfasst: Do 30.10.03 22:57 
Hi

Hab mir Delphi X runtergeladen und wollt jetzt n paar Bitmaps in der Komponente DXDIB speichern:

1. Kann ich mehrere Bitmaps in einer der Komponenten speichern oder muss ich für jede bmp-Datei eine Extra Komponente erstellen?

2. Wie kann ich die DXDIB-Komponente bzw. die enthaltenen Bilder auf einer DXDraw-Fläche aufrufen und anzeigen lassen?

Danke schon mal im vorraus!
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Do 30.10.03 23:40 
Zum ersten,

vergiss DXDIB. Nimm die DXImagelist.

Dort kannst du mehrere Images in einem Speichern.

Du greifst dann folgendermaßen auf die Images zu:

ausblenden Quelltext
1:
imagelist.images[0].draw...					


Die Imagelist muss jedoch den DXdraw oberfläche zugeordnet werden. Das geht über den Objektinspector.

Ansonsten kann ich nur empfehlen ein Tutorial zu lesen.

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
Ich Bins Threadstarter
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 197

Win XP Prof
D5 Prof
BeitragVerfasst: Fr 31.10.03 12:42 
Ich dachte eigentlich, dass ich die Bitmaps mit der BIP-Komponente in der EXE-Datei speichern könnte, weil so muss ich die Bitmaps ja in einem Ordner haben.

Trotzdem schonmal danke!
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Fr 31.10.03 13:23 
mit DXImagelist sind sie auch in der exe (im dfm-stream) gespeichert...bei grossen bildern viellecht binäres DFM format benutzen (projekt->optionen->??->text dfm aus machen<) :wink:

_________________
mfg.
mâximôv