Hi All,
I am a new guy trying to develop an Image printer
driver. I am actually using the unidrv architecture to
develop the driver. I was sucessfull in generating the
bitmap in ImageProcessing with a resolution of “150 X
150” (i found some sample GPD files and from that i
actually found the code for this). Now i want the
image to be print in an higher resolution (like 300
and 400). But when i try to print this with a LETTER
size i cannot actually figure out what should be the
values for *PrintableArea and *PrintableOrigin for it
to print correctly.
Can someone explain how these are related.
Part of my GPD file is
*Feature: Resolution
{
*rcNameID: =RESOLUTION_DISPLAY
*DefaultOption: Option2
*Option: Option2
{
*Name: "150 x 150 " =DOTS_PER_INCH
*DPI: PAIR(150, 150)
*TextDPI: PAIR(300, 300)
*SpotDiameter: 100
*Command: CmdBeginRaster { *Cmd : “” }
*Command: CmdEndRaster { *Cmd : “” }
*Command: CmdSendBlockData { *Cmd : “” }
*Command: CmdSelect
{
*Order: DOC_SETUP.4
*Cmd: “”
}
}
*Option: Option3
{
*Name: "300 x 300 " =DOTS_PER_INCH
*DPI: PAIR(300, 300)
*TextDPI: PAIR(600, 600)
*SpotDiameter: 100
*Command: CmdBeginRaster { *Cmd : “” }
*Command: CmdEndRaster { *Cmd : “” }
*Command: CmdSendBlockData { *Cmd : “” }
*Command: CmdSelect
{
*Order: DOC_SETUP.4
*Cmd: “”
}
}
}
*********************
*Feature: PaperSize
{
*rcNameID: =PAPER_SIZE_DISPLAY
*DefaultOption: LETTER
*Option: LETTER
{
*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
*switch: Orientation
{
*case: PORTRAIT
{
*PrintableArea: PAIR(9564, 12600)
*PrintableOrigin: PAIR(300, 300)
*CursorOrigin: PAIR(300, 180)
*switch: Resolution
{
*case: Option2
{
*PrintableArea: PAIR(9592, 12640)
*PrintableOrigin: PAIR(304, 304)
}
*case: Option3
{
*PrintableArea: PAIR(9592, 12640)
*PrintableOrigin: PAIR(100, 604)
}
}
*Command: CmdSelect
{
*%5760 – 7560
*Order: DOC_SETUP.10
*Cmd: “”
}
}
*case: LANDSCAPE_CC90
{
*%(9720, 12648)
*PrintableArea: PAIR(9760, 12688)
*PrintableOrigin: PAIR(200, 272)
*CursorOrigin: PAIR(200, 12960)
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: “”
}
}
}
}
.
.
.
Here when i use
*case: Option3
{
*PrintableArea: PAIR(9592, 12640)
*PrintableOrigin: PAIR(100, 604)
}
The image seems to be cut.
Can some one please explain.
Thanks in advance
JJ
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html