Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: So 06.04.03 18:15 
Hi,

ich möchte mir gern ne Unit schreiben zum öffnen von TGA Bildern... das Dateiformat etc ist alles kein problem, nur wie bekomme ich es hin, das wenn ich dann im TImage ein TGA Bild öffne automatisch meine Unit verwendet wird...??? (Also so wie bei JPEG und GIFImage)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: So 06.04.03 18:46 
Hab es grad rausgefunden (bzw Motzi *g*):

ausblenden Quelltext
1:
TPicture.RegisterFileFormat					


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: So 06.04.03 21:45 
huhu,

mh.. anderes Problem...

Weiß jemand in welcher Form ich das Bild dann wie bereitstellen muß..???

Also will das TImage das Bild z.B. als TGraphic in der variable Graphic oder so haben, etc..?

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Eisenherz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Mo 07.04.03 14:12 
Aya hat folgendes geschrieben:
Weiß jemand in welcher Form ich das Bild dann wie bereitstellen muß..???


Mir ist nicht ganz klar was Du damit genau meinst, aber ich würde sagen, dass Deine Klasse genau die gleichen Methoden von TGraphic überschreiben muss, die z.B. auch die Klasse TIcon oder TBitmap überschreiben.

_________________
aloa Eisenherz
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: Di 08.04.03 17:58 
Juhu...hmm!

Würd mich auch mal extrem interiessieren...speziell wie man 16bit TGAs läd! Also wie gesagt das format ist kein problem, nur die integration...wie aya schon sagte!

Vielleicht hat es ja schon wer gemacht?

@AYA: bist du da schon weiter gekommen?

_________________
mfg.
mâximôv
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 08.04.03 18:00 
Ne, leider nicht... :(

Also jaein... *g* man muß die Komponnte von TGraphic ableiten und halt das TGA in ne TGraphic laden ;)

Hatte leider nochnet soviel zeit seitdem das zu machen. (bzw.. war zu faul und hab's vergessen :oops: )

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!