How to get Image in?
26-Nov-93 05:40:00
Sb: #37825-How to get Image in?
Fm: Wayne Cole 76370,621
To: Jim Philippou 71171,3015
>>Do you know how to feed a bit map to the print driver?<<
Jim,
There's a fairly detailed description in the devices portion of the RKM.
Basically the process involves initializing an IODRPReq structure, opening
the printer device, then sending PRD_PRTCOMMAND to the printer device.
This assumes the printer is graphics capable, and that preferences are set
correctly for the printer and the printer driver for the printer supports
dumping pixesl to the printer. Included in the IODRPReq structure is a
pointer to the rastport and colormap for the image. The RastPort structure
carries the bitmap pointer in it. This is the route, as I understand it,
for displayed images. If the image is an ILBM, there is a similar process
except you use a slightlky different set of structures, I believe. Its
been a couple of years since I looked at this in detail, but I think this
is the preferred way of doing it. I'm sure (or at least I hope) that
someone with more dabling time or actual recent programming experience in
this area will jump in and correct me if I'm wrong.
wmc – via Autopilot!