You are not logged in.
Pages: 1
I have problem with rendering EMF file.
EMF in Paint:
I tried three different ways (+ 4th TMetafile to TBitmap ) render TMetafile to PDF:
1. pdf.VCLCanvas.Draw
pdf.VCLCanvas.Draw(10, 100, metafile);
very bad result
2. GDI+ DrawEmfGdip
DrawEmfGdip(pdf.VCLCanvas.Handle, metafile, r, True);
It is much better, but there are artifacts:
3. pdf.Canvas.RenderMetaFile
pdf.Canvas.RenderMetaFile(metafile, 1, 1, 10, 100);
bad result:
and
4. TMetafile -> TBitmap and VCLCanvas.Draw
bmp.Canvas.Draw(0,0, metafile);
pdf.VCLCanvas.Draw(10, 100, bmp);
this is good result
but it is raster format and we can't copy text from a PDF for example.
What method is to use and how to except errors?
https://dl.dropboxusercontent.com/u/209 … Unit10.pas
https://dl.dropboxusercontent.com/u/209620/PDF/aa.emf
https://dl.dropboxusercontent.com/u/209 … df_emf.pdf
Offline
IBExpert
Offline
Pages: 1