Wenn man keinen doppelten Source mag:
Delphi-Quellcode:
Procedure TMyForm.LoadBild(FImage:TImage;ResName:String);
var
RS : TResourceStream;
Factor : single;
Resolution : string;
begin
FImage.MultiResBitmap.Clear;
if GlobalScale < 2.0 then
begin
Factor := 1.0;
Resolution := 'Low';
else
begin
Factor := 2.0;
Resolution := 'High';
end;
RS := TResourceStream.Create(HInstance,ResName+Resolution,RT_RCDATA);
FImage.MultiResBitmap.LoadItemFromStream(RS, Factor);
FreeAndNil(RS);
end;