Autor Beitrag
Fischman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Mo 01.09.03 15:50 
Hallo Leute,
mein Problem ist es ein bmp in ein Image zuladen,seit ich in der Uses jpeg eingetragen habe.Mit denn jpeg Bildern funktioniert das ja auch.
Da kommt die Fehlermeldung "Bitmap ist ungültig" bei bmp. Wer kann mir
da weiter helfen.

Gruß Uwe
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 01.09.03 17:36 
wie läds du denn ein ?
es gibt da mehrer verschienden möglichkeiten :idea:

_________________
MFG
Michael Springwald, "kann kein englisch...."
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Mo 01.09.03 22:50 
Ich lade die Fotos über ein OpenPictureDialog in mein Programm.

Gruß Uwe
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Di 02.09.03 10:46 
Poste am besten mal deinen Quelltext.

ich vermute, dass du die BMP genauso wie die JPEG behandelst. Und das geht ja nicht.

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Mi 03.09.03 23:04 
Zum laden eines Bildes nehme ich den Quelltext.

ausblenden Quelltext
1:
2:
if OpenPictureDialog1.Execute then
   Image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);


Eigentlich standart denke ich mal so.Oder muß ich noch mehr machen.

Gruß Uwe
svenson08
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 87



BeitragVerfasst: Do 04.09.03 07:47 
Picture ist von Typ TPicture, also nicht vom Typ TBitmap.
ausblenden Quelltext
1:
 Image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);					


Damit sollte es gehen.
ausblenden Quelltext
1:
Image1.Picture.Bitmap.LoadFromFile(OpenPictureDialog1.FileName);					
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Fr 05.09.03 16:37 
Damit hat es auch nicht geklappt.Wenn dann mache ich die sache erstmal mit einem Bildformat.

Sonst Danke an alle.
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Fr 05.09.03 17:32 
Poste doch bitte deinen Quelltext, oder sende ihn mir

[url]benno@bekr.de[/url]


Dann kann ich versuchen Dir zu helfen.


Gruß Benno Krause

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius