Advertisement
Gov_777

Из ресурса JPEG

Dec 18th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.39 KB | None | 0 0
  1. uses Vcl.Imaging.jpeg;
  2. procedure ***;
  3.   var
  4. RS: TCustomMemoryStream;
  5. JPGImage: TJPEGImage;
  6. begin
  7. JPGImage := TJPEGImage.Create;
  8. try
  9. RS:= TResourceStream.Create(HInstance, 'patch_default', RT_RCDATA);
  10.                                      // имя ресурса
  11. JPGImage.LoadFromStream(RS);
  12. Image2.Picture.Graphic := JPGImage;
  13. finally
  14. FreeAndNil(RS);
  15. FreeAndNil(JPGImage);
  16. end;
  17. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement