Autor Beitrag
Trainman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

XP

BeitragVerfasst: Fr 05.12.03 14:56 
hallo leute

ich habe ein Problem. Ich will ein Bildschirmschoner programmieren. Dazu habe ich einen button1.click, dann soll z.B. Image1 ein Bild von einem Pfad laden. Aber wie kann ich das anstellen? Kann einer mir helfen?
trainman :twisted: :evil: :idea:
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 05.12.03 15:42 
Mit

ausblenden Delphi-Quelltext
1:
Image.Picture.Loadfromfile('dateiname');					


kannst du Bilder öffnen. (Die OH hätte es aber auch getan :roll: )
Trainman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

XP

BeitragVerfasst: Di 09.12.03 14:23 
danke obstkuchen :?
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 09.12.03 14:30 
denk dran die exe später in *.src oder wars scr? umzunennen
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 09.12.03 18:43 
scr

_________________
In the beginning was the word.
And the word was content-type: text/plain.
sCrAPt
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mi 10.12.03 12:49 
hiho
Das kann man gleich in Delphi so ändern: Projekt>Optionen>Anwendung>Ausgabe>"scr" eintragen

:wave:, sCrAPt
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 10.12.03 14:15 
scr steht für Screen.
src würde soweit ich weis für Source stehen

also SCR *gg* Du willst ja einen ScreenSaver und keinen SourceViewer *ggg*

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Trainman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

XP

BeitragVerfasst: Sa 13.12.03 18:14 
aber wie kann ich ein jpg-datei in ein Image laden. Mit
Zitat:
loadformfile
kann ich nur bmp laden. Wie gesagt, ich möchte jpg laden, weil viel kleiner sind als bmp.
Danke
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 13.12.03 18:31 
Füge mal die Unit "jpeg" bei Dir hinzu!

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Trainman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

XP

BeitragVerfasst: Fr 19.12.03 12:56 
wie meinst du es denn, Peter?´meinst du ganz oben bei der codetext? :?: kannst du es näher erklären.
Licki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 132

Knoppix, Win 95, Win 2000, Win NT, Win 98, Win XP
Delphi 3
BeitragVerfasst: Fr 19.12.03 13:05 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
unit Unit1; 

interface 

uses 
  Windows, ..., JPEG;

type 
  TForm1 = class(TForm)
  ...