Click to See Complete Forum and Search --> : EMR_POLYDRAW16 and PolyDraw function


chiragkapadiya
03-20-2007, 06:47 AM
Hello Everybody,
I am reading windows printer spool file and I am rendering it into bitmap. Up to now I have read arround 50 Enhaced Meta file structures and converted it into bitmap.

But now when I am creating Spool file from a PDF document. In this spool file I found a structure EMR_POLYDRAW16. I can read it properly. But when I am trying it to convert bitmap using PolyDraw function I got an error about ERROR_INVALID_PARAMETER.

Actually , problem is with the abTypes[1] parameter of EMR_POLYDRAW16 function. It contains wrong values. like { 206,16, 63, 22, 220, 16, 42, 22, 11,16, 42, 22}.

Can anyone tell me the solution?
you can check for reference:
http://msdn2.microsoft.com/en-us/library/ms534472.aspx
http://msdn2.microsoft.com/en-us/library/ms534253.aspx

thanks in advance.