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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Load Jpeg from resource

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
behdadsoft Posted - Apr 29 2022 : 04:13:26
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;
2   L A T E S T    R E P L I E S    (Newest First)
behdadsoft Posted - May 02 2022 : 12:14:37
Thank you.
xequte Posted - Apr 29 2022 : 14:56:53
Hi

Please see the examples at:

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

Nigel
Xequte Software
www.imageen.com