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
 TImageEnView and TImageEnMView Functionality Issue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

suri1

India
5 Posts

Posted - Aug 13 2014 :  03:03:53  Show Profile  Reply
Hello,
I am using TImageEnMView and TImageEnView to display multi page image as well as single image. Here’s the sample code.

Same code 1)

//MultiImageViewer is TImageEnMView
//SingleImageViewer is TImageEnView
var
tmpbmp: TBitmap;
tempStream: TStream;
begin
tempStream := TMemoryStream.Create;
tmpbmp := MultiImageViewer.GetBitmap(imageIndex) ;
tmpbmp.SaveToStream(tempStream);
tempStream.Seek(0, soFromBeginning);
SingleImageViewer.IO.LoadFromStream(tempStream);
tempStream.Free;
end;


I am also using sinlge image viewer TImageEnView to display image. Here’s the sample code.

Same code 2)

Image1.io.LoadFromFileAuto(pfileName);

While loading image with “sample code2”, the image quality is good and image is clear and visible, but I cannot use this method to
view multi page image directly so I use “Sample code 1” to achieve this. The “sample code 1” is used for both simple as well as multi page image.

But there is clear image quality difference between “sample code 1” and “sample code 2”
Is there any other way we can use the multi-Image viewer and single image view so that it doesn’t affect the image quality or display quality.

Thanks in Advance #61514;

xequte

39053 Posts

Posted - Aug 13 2014 :  03:15:21  Show Profile  Reply
Hi

What is the “StoreType” property of MultiImageViewer?

http://www.imageen.com/help/TImageEnMView.StoreType.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

suri1

India
5 Posts

Posted - Aug 13 2014 :  04:46:34  Show Profile  Reply
The storeType property is "ietNormal"
Go to Top of Page

xequte

39053 Posts

Posted - Aug 14 2014 :  03:13:55  Show Profile  Reply
Hi

How about this code:
//MultiImageViewer is TImageEnMView
//SingleImageViewer is TImageEnView
begin
  MultiImageViewer.CopyToIEBitmap(imageIndex, SingleImageViewer.IEBitmap);
  SingleImageViewer.Update;
end;


Also, can you show (e.g. attach images) the result of the output you are seeing?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: