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
 ielib32.dll and LoadFromStreamJPEG

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
egrobler Posted - May 30 2014 : 18:04:46
Hi Nigel,

I load around 300 thumbs from a stream and whether I enable the dll or not, it always takes exactly 6.5 seconds.

Does io.LoadFromStreamJPEG make use of the dll?

Thanks & Regards
Eric



procedure TIEBitmapEx.LoadFromStream_JPEG_Thumb(const aStream: TStream);
var io: TImageEnIO;
begin
  FreeImage;
  if aStream=nil then Exit;
  if aStream.Size<1 then Exit;
  aStream.Position := 0;

  io := TImageEnIO.Create(nil);
  try
    io.AttachedIEBitmap := Self;
    io.LoadFromStreamJPEG(aStream);
  finally
    io.Free;
  end;
end;

{$define IEUSEDLLJPEGLIB}
{$define IEUSEDLLPNGLIB}
{$define IEUSEDLLJPEG2000LIB}
{$define IEUSEDLLRAWLIB}

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 01 2014 : 23:01:24
Hi Wesley

That could be useful. We'll investigate the practicality of that for a coming update.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
wesleybobato Posted - May 31 2014 : 13:02:59
Hi Nigel is not possible to create an option in iesettings.pas
Add and IEGlobalSettings().IEUSEDLL

For whenever I update ImageEN have to change these lines in ie.inc

{$define IEUSEDLLJPEGLIB}
{$define IEUSEDLLPNGLIB}
{$define IEUSEDLLJPEG2000LIB}
{$define IEUSEDLLRAWLIB}

Thank you for your attention
xequte Posted - May 30 2014 : 22:32:08
Hi

Yes, LoadFromStreamJPEG does use the DLL. Are you testing a variety of different JPEGs? Have you confirmed that your test EXE was using the DLL?

What version of Delphi are you using? Perhaps the newer ones have better optimization.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com