MYPNG RCDATA mypng.png
添加到项目:
{$R 'myres.res' 'myres.rc'}
在运行时加载的示例:
uses PngImage; var Png: TPngImage; begin Png := TPngImage.Create; try Png.LoadFromResourceName(HInstance,'MYPNG'); Image1.Picture.Graphic := Png; // Image1: TImage on the form finally Png.Free; end; end;