Click to See Complete Forum and Search --> : Printer driver interface dll


ravi_k1970
September 23rd, 2003, 08:11 AM
Hi,

Iam trying to write a printer driver plug-in to capture data from any windows application. e.g., Bitmaps, Rectangle, line circle objects when inserted in a word, or powerpoint application.

Iam hooking to the many driver functions called by GDI like DrvTextOut, DrvStrokePath, DrvStrokeAndFillPath.

Iam able to identify lines and rectangles, but in case of circles or ellipse GDI calls DrvStrokeAndFillPath.
One of the parameters to this function is hint information specifying whethet it is an ellipse or Bezier curve.
But i don't get any hint information for circles and ellipses.
I set the graphic capability flags in the GDIINFO structure, specifying bezier curves drawing capability.

I get a set of 13 control points for circels/ellipse, i want to determine the diameter of this object,

Is there any other way of recognizing objects from any windows appication?

if this is a good approach,can anybody help me if any other information is to be given to GDI by driver , or how to identify objects at thr printer driver level.

Thanks,
Ravi.