Autor Beitrag
Pyr0cracker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 164

Win XP, Ubuntu 8.04, openSUSE 11.0
Delphi 7 Personal
BeitragVerfasst: So 15.06.03 22:00 
Hallo, wenn ich bei DelphiX in die Imagelist Jpg's nehme, werden sie im Spiel nicht angezeigt,
wodran liegt das?
Was kann man denn sonst nehmen? PCX, WMF?
Sind die komprimiert?

Gruß,
Da_Knuddelbaer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 485



BeitragVerfasst: Mo 16.06.03 09:17 
Versuchs mal mit bmps... und wenns dann noch net geht dann hast du einen Programmierfehler.
:)
Pyr0cracker Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 164

Win XP, Ubuntu 8.04, openSUSE 11.0
Delphi 7 Personal
BeitragVerfasst: Mo 16.06.03 12:06 
Hallo,
Mit BMP gehts, die Bilder sind aber immer so groß.
Deshalb würde ich gerne jpg oder gif nehmen.

Ich könnte natürlich mal ausprobieren die Bilder in ein Archiv zu packen und dann beim Spiel start in ein Temporäres Verzeichnis entpacken...Mal sehen ob ich sowas hinbekomme.

Gruß
Elayla
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Mo 16.06.03 16:11 
Die Imagelist kann doch nur Bitmaps lesen, oder?

_________________
Das wahre Ziel des Krieges ist der Frieden.
Sun Tzu
Da_Knuddelbaer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 485



BeitragVerfasst: Mo 16.06.03 16:15 
Nein, die DXImageList kann auch einige andere Formate wie jpg, jpeg, gif etc.
Das gleiche Prob wie Pyrocracker habe ich auch grade... komischerweise. Weil ich habe schonmal mit jpgs in der DXImageListe gearbeitet und hatte nie Probleme damit, zumindest bis gestern abend *gg*
Elayla
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Mo 16.06.03 16:31 
Ohh nett, muss ich was verwechselt haben :)
Isses bei der Imagelist rein von der Geschwindigkeit sehr von Bedeutung ob ich kleine JPGs nehme oder BMPs?
(Ich habe z.B. ein Programm das eine Karte aus 16x20 40x40px Bildern permanent zusammensetzt ; (sprich ein kleines Spiel ^^) die sind momentan bmp ... sind jpgs schneller geladen?)

_________________
Das wahre Ziel des Krieges ist der Frieden.
Sun Tzu
Da_Knuddelbaer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 485



BeitragVerfasst: Mo 16.06.03 16:52 
Tjoa, gute Frage. Also bei kleinen BMPs wird es sicherlich kaum wenn überhaupt einen Unterschied machen. Bei größeren Projekten mit ein paar hundert Grafiken sollte man überlegen ob man dann nicht doch lieber jpgs nimmt. Ich weiss nicht wie es bei jpgs mit der Collision-Abfrage aussieht, könnte mir aber vorstellen dass es entweder genauso "schnell" geht oder nen tick langsamer ist.

Kann ich grad aber net testen weil ich auch keine Bilder mehr sehe :lol:
Phobeus
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1280

Linux (FC6), WinXP Pro (Box)
D6 Pers, D7 Pro, FPC 2.x
BeitragVerfasst: Mo 16.06.03 17:04 
JPEGs geht, einfach die unit "JPEG" in entsprechende Units mit einbinden, dann gehts...

_________________
"Menschen sterben nicht wenn man sie zu Grabe trägt, sondern wenn sie ihre Träume verlieren..."
Elayla
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Mo 16.06.03 20:03 
Knuddel, weil du Collisionsabfrage ansprichst, gibt es ne einfache Methode um zu vergleichen ob 2 Grafiken zusammenstoßen?
Mal ganz doof gesagt If Img1 = Img2 Then NichtBauen oder so in der Richtung? :roll:
Ne oder? :wink:

_________________
Das wahre Ziel des Krieges ist der Frieden.
Sun Tzu
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 16.06.03 20:16 
ne die richtung ist aufjedennfall falsch, habe in 6-7 verschiende foren gefragt und keiner konnte mir eine funktioniernde awt geben.

_________________
MFG
Michael Springwald, "kann kein englisch...."
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 16.06.03 20:41 
Bitte für jede Frage einen neuen Thread aufmachen :mahn:
Aber wenn die Bilder nicht unregelmäßig sind, also rechteckig, kannst du mit der Höhe und Breite und der Position der linken, oberen Ecke arbeiten.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Elayla
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Mo 16.06.03 20:56 
Ok sry Tommie, passiert nicht wieder :oops:

_________________
Das wahre Ziel des Krieges ist der Frieden.
Sun Tzu
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 16.06.03 20:58 
so habe mal ein neuen beitrag eröffnet:) mal sehen ob er erfolg hat.

_________________
MFG
Michael Springwald, "kann kein englisch...."