ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Load Jpeg from resource
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

behdadsoft

2 Posts

Posted - Apr 29 2022 :  04:13:26  Show Profile  Reply
Hi.

I made an Image.RES that contain many '.jpg' files. Now I want to Load one of them from Image.RES with LoadFromStreamJpeg() function. I used code below but it doesn't work and gave this error:

Cannot open file "...\Win32\Debug\IMG_1". The system cannot find the file specified.

This is my Code:


procedure LoadMyImage;
var
 FileStream: TStream;
Begin
  FileStream := TFileStream.Create('IMG_1' , fmOpenRead);
  ImageEnView.IO.LoadFromStreamJpeg(FileStream);
  ImageEnView.Fit();
  ImageEnView.Update;
  FileStream.free;
End;

xequte

38611 Posts

Posted - Apr 29 2022 :  14:56:53  Show Profile  Reply
Hi

Please see the examples at:

https://www.imageen.com/help/TIEBitmap.LoadFromResource.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

behdadsoft

2 Posts

Posted - May 02 2022 :  12:14:37  Show Profile  Reply
Thank you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: