Photon Printing to file

Hi.

I am using the Photon Print Context routines to print widgets to a file. I
can successfully get a photon draw stream file, but I can not get the output
to be a bitmap. I have to manually run the phs-to-bmp converter to get the
correct output.

An excerpt of the code I am using follows. What have I missed to output the
file in bitmap format?

Thanks,
Stuart Harding

pc=PpCreatePC();
PpSetPC(pc, Pp_PC_DRIVER,“phs-to-bmp”, NULL);
PpSetPC(pc, Pp_PC_SOURCE_SIZE, &area.size, NULL);
PpSetPC(pc, Pp_PC_FILENAME, “/home/file.bmp”, NULL);
PpStartJob(pc);
PpContinueJob(pc);
PpPrintWidget(pc, ABW_PtRaw1, &area.pos, NULL,0);
PpSupsendJob(pc);
PpEndJob(pc);
PpReleasePC(pc);