Autor Beitrag
Karstadt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Do 03.11.05 11:11 
Hallo. Wie kann ich das realieiseren?

ausblenden Delphi-Quelltext
1:
I_kuenstler.Picture.Graphic.LoadFromFile('C:\111.jpg');					


Damit bekomme ich immer eine Fehlermeldung.

Was mache ich falsch?

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Do 03.11.05 11:16 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var I_Picture: TJPEGImage;
begin
  I_Picture := TJPEGImage.Create;
  I_Picture.LoadFromFile('C:\111.jpg');
  I_kuenstler.Picture.Assign(I_Picture);


Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 03.11.05 11:43 
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls, JPEG;

type
  TForm1 = class(TForm)
    Button1: TButton;
    I_Picture: TImage;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  I_Picture.Picture.LoadFromFile('C:\111.jpg');
  {I_Picture ist der Name des Image oben bei Uses JPEG angeben !}
end;

end.


Die Suche nach Image oder Jpg hätte auch jede Menge dazu geliefert !