I found the code to do the following on this site, so thanks However the line "logo.Bitmap.LoadFromStream( MyRs);"
Access Violation - some kind of memory error I assume.
I used Project | Resources and Images ... to add the Jpeg
Is this a problem with the resource not being linked in, or rather my code?
Thanks :)
uses
Classes, FMX.Graphics, FMX.Objects;
procedure MyProvedure();
var
logo : TImage;
MyRS : TResourceStream;
begin
MyRS := TResourceStream.Create( HInstance, 'logo_1', RT_RCDATA );
try
logo.Bitmap.LoadFromStream( MyRs);
finally
MyRS.Free;
end;
end;