Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
suri1
Posted - Aug 13 2014 : 03:03:53 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;
3 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Aug 14 2014 : 03:13:55 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?