I load a pdf file into an ImageEnmView with ImageENView.IO.LoadFromFilePDF('c:\temp\mypdf.pdf') but when I convert the pdf into a bitmap with:ImageENView.PdfViewer.DrawTo(Bitmap) where Bitmap:TIEBitmap the quality is getting blurry as I scale the ratio of the bitmap. Is it possible to have the bitmap quality maintain the same as what we see in the pdfviewer and how should I do that? Thanks in advance for your help.
//Here's how I load pdf into ImageEnView: ImageEnView.LoadFromFilePDF(mypdf_file);
//Here's how I convert pdf in ImageENView into a bitmap Bitmap := nil; try Bitmap := TIEBitmap.Create; Bitmap.Resize(0, 0, 0, 0, 0); Bitmap.ParamsEnabled := True; Bitmap.Params.JPEG_Quality := 100; //make high quality 100% Bitmap.Params.JPEG_Smooth := 0;
ImageENView.PdfViewer.DrawTo(Bitmap); //convert to bitmap. it seems drawTo cut down the resolution of bitmap Bitmap.Write(Stream, ioJPEG); //write bitmap to TMemorystream with jpeq format
//Here's how I load the image from TMemoryStream TGraphicEditor(FDoc.docEditor).LoadImageStream(Stream); //I got poor quality
Nigel - I upgrade ImageENView to 10.3 so I can set the global settings dpi to set to 144 but the drawTo function to return TieBitmap seems not taking dpi into account. I did set bitmap image width and height to large enough but still can't get a good quality image with text in it. Thanks for quick response.