Is there any difference in drawing emf on CDC and Bitmap?
-
Hello Everybody, abc.emf file has some lines and text inside it stored in vector form. Have tried various way of drawing this emf file on Bitmap as follows:
Metafile metafile("abc.emf");
height = metafile.GetHeight();
width = metafile.GetWidth();
Rect rcdst(0, 0, width, height);
Bitmap bmp(width, height, PixelFormat32bppARGB)
Graphics gr(&bmp);
[1]
gr.DrawImage(&metafile, rcdst, 0, 0, width, height, UnitPixel);[2]
gr.EnumerateMetafile(&metafile, Point(0, 0), metaCallback, &metafile);
metaCallback was defined appropriately and inside that used Metafile::PlayRecord() for drawing.Now, when i save this bmp in uncompressed format like tif then the quality of text is not coming properly. When i display the same emf file on CDC then the quality of text is proper, means antialised. Please suggest how the quality of emf can be maintained while drawing it on bitmap. Also, highlight any other method through which this can be done. Thanks.