#include <HIOUtilityGDIOutput.h>
Public Member Functions | |
void | RegisterOutputHandlerTypes () |
registers the 'emf' output type | |
const char * | GetOutputTypesString () |
HOutputHandlerStyle | GetOutputStyle () |
HFileOutputResult | FileOutputByKey (const char *FileName, HC_KEY key, HOutputHandlerOptions *options) |
HFileOutputResult | FileOutputFromImageKey (const char *FileName, HC_KEY key, HOutputHandlerOptions *options) |
Via the GDIExportInfo structure you supply the id to the device context, the window handle and a bool indicating whether or not this is export to a clipboard or printer DC. The code queries the device and repositions subwindows to ensure we get WYSIWYG printing. This code should be used as a reference for developers who want to get WYSIWYG printing of their subwindows.
The printing code employs a multi-pass render approach where it first creates an image of all the data which would be sent down as rasters when rendered to a clipboard or printer DC and then sends down the rest of the (vector) data after first passing it through a hidden surface removal algorithm to ensure it is sorted correctly wrt to the data in the image. Using this appraoch means that the image and shaded geometry in the scene will be sent down in one quik BitBlit while the remaining polylines, edges, text and markers will be sent down as vector primitives. This results in high quality hardcopy and clipboard output.
|
This function should be used for all GDI Print and Copy to Clipboard work
|
|
overloaded; returns OutputNotHandled |
|
|
|
|