Autor Beitrag
Delphi2009lover
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176



BeitragVerfasst: Mi 26.08.09 20:53 
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:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
unit Ressource;

interface

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


type
  TForm3 = class(TForm)
    Image1: TImage;
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form3: TForm3;

implementation

{$R *.dfm}
{$R hallotest.res}

 function GetResourceAsJpeg(const resname: string): TJPEGImage;

  var

    Stream: TResourceStream;

  begin

    Stream := TResourceStream.Create(hInstance, ResName, 'JPEG');

    try

      Result := TJPEGImage.Create;

      Result.LoadFromStream(Stream);

    finally

      Stream.Free;

    end;

  end;
procedure TForm3.FormCreate(Sender: TObject);
begin

end;

end.



Das hier ist mein Code bloß: "Undeklarierter Bezeichner TJPEGImage"

Benutze Delphi 9 bin für jede Hilfe dankbar
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 26.08.09 21:22 
Hi,

das kann man lösen indem man die Unit JPEG nach dem wort uses (ganz oben in der unit zu finden) hinschreibt.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Delphi2009lover Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176



BeitragVerfasst: Do 27.08.09 13:26 
Vielen Dank ich hatte TJPEG und TJPEGImage versucht xD