Create Device Context with arbitrary resolution?
-
Is it possible to create a memory device context with specific resolution and pixel depth (LOGPIXELSX, LOGPIXELSY, BITSPIXEL, et), rather than simply copying the values for an existing device? I need to play windows meta files into a DC in order to generate bitmaps which will be saved as various raster file formats. The x and y resolution as well as the pixel depth of these files are not related to the resolution of the display or to any attached printer. I am currently doing this by specifying ANISOTROPIC mapping mode, and setting the Window and Viewport Extents as required. This works for some of the metafiles, but unfortunately, many of them explicitly set the mapping mode or extents internally. I have used EnumMetaFile to trap these commands, but it would be much easier (and faster) if I could simply create a device context with the correct parameters and just play the metafile. Any help or tips would be greatly appreciated. Thanks, Bill