I am trying to write a printer driver that will ultimately allow me to take
any print job
and convert it to any graphics file format. I have all of the tools needed
to create the
various file formats such as .tif, .gif, .bmp etc. I am using the unidrv
approach and have
created my own UI.dll, Print Processor and UNI.dll (plugin).
To date I have created functions that will allow me to take a SURFOBJ and
create a DIB
which I can then write out to file in any format. My problem is that I am
trying to use the
OEMNextBand approach and I do get the data, however, I am having difficulty
in 2 areas.
- The size of the surface in the nextband call is wider than the
devmode settings I get in
Startdoc.
- The POINTL param passed in to nextband is negative and I do not know
how to interpret
these values.
If I take each of the bands separately I do see all of the content, but I am
having a difficult time
with trying to ‘assemble’ the page. Any ideas?
Tim