c++ - Convert EMF to BMP (Metafile to Bitmap) using Windows Imaging Component -


i have .emf file want convert bitmap in legacy vc++ 6.0 code.

i've been looking through wic documentation , i'm surprised haven't seen way this.

am missing something?

if wic ends not supporting this, there method programattically load .emf file cbitmap object?

there's no need wic. it's built core of windows in form of playenhmetafile.

so, picture bmp, select bmp dc, playenhmetafile on dc, , result go bmp.

note isn't converting metafile bmp--it's rendering metafile bmp. say, metafile (usually) resolution independent. example, may specify line logical coordinate (0,0) (100, 100). when render bmp, line rasterized @ specific resolution. if later wanted same picture @ higher resolution, metafile provide it, rendering in bmp couldn't/can't.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -