Ver Mensaje Individual
  #4  
Antiguo 31-10-2006
Patricio Patricio is offline
Miembro
 
Registrado: jul 2004
Posts: 433
Reputación: 20
Patricio Va por buen camino
Ejemplo

En el ejemplo que me indicas

{$R MyRes.RES}
{$R *.DFM}


procedure TForm1.Button1Click(Sender: TObject);
var
MyRS: TResourceStream;
begin
try
MyRS:=TResourceStream.Create(HInstance, 'HELP', RT_RCDATA);
Image1.Picture.LoadFromFile('example.jpg');
if Image1.Picture.Graphic is TJPEGImage then
TJPEGImage(Image1.Picture.Graphic).LoadFromStream(MyRS);
finally
MyRS.Free;
end;
end;


cuando lo utilizo en mi proyecto me carga por defecto una rosa, que no se de donde sale, hay algo que tenga que modificar? Gracias
Responder Con Cita