RE: UNIDRV Grayscale Vector vs. DIB Conversion by bobbym
bobbym
Thu Apr 13 18:15:44 CDT 2006
------=_NextPart_0001_06ADE8FF
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi Guy,
You can implement your own halftoning by implementing
IPrintOemUni::ImageProcessing
Thank you,
Bobby Mattappally
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Guy Light" <Guy.Light@newsgroups.nospam>
From: "Guy Light" <Guy.Light@newsgroups.nospam>
Subject: UNIDRV Grayscale Vector vs. DIB Conversion
Date: Tue, 11 Apr 2006 11:28:30 -0400
Lines: 60
UNIDRV is doing differnt GrayScale conversions for Vector and Bitmap
Objects.
In grayscale printmodes, GDI renders these differently
Vector objects use Gray = (R+G+B)/3
Bitmap objects use ?
Likely an NTSC luminance weighting, i.e., Gray = 0.3 * R + 0.59 * G + 0.11
*
B
How Do I get UNIDRV to do a GrayScale conversion Like NTSC luminance
weighting for all objects?
Here the current GPD Settings for ColorMode:
*%====================================================================
*% ColorMode Feature
*%====================================================================
*Feature: ColorMode
{
*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
*DefaultOption: Color24
*Option: Mono1
{
*rcNameID: =IDC_MONO_RADIO
*DevNumOfPlanes: 0
*DevBPP: 0
*DrvBPP: 8
*RasterMode: DIRECT
*IPCallbackID: 1
*Color? : FALSE
*Command: CmdSendBlockData { *Cmd: "" }
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: =""
}
}
*Option: Color24
{
*rcNameID: =IDC_COLOR_RADIO
*DevNumOfPlanes: 0
*DevBPP: 0
*DrvBPP: 24
*RasterMode: DIRECT
*IPCallbackID: 2
*Color? : TRUE
*Command: CmdSendBlockData { *Cmd: "" }
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: =""
}
}
}
Thank you,
Guy Light
------=_NextPart_0001_06ADE8FF
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par Hi Guy,
\par
\par You can implement your own halftoning by implementing IPrintOemUni::ImageProcessing
\par
\par Thank you,
\par Bobby Mattappally
\par Microsoft
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par \pard\li720 --------------------
\par Reply-To: "Guy Light" <Guy.Light@newsgroups.nospam>
\par From: "Guy Light" <Guy.Light@newsgroups.nospam>
\par Subject: UNIDRV Grayscale Vector vs. DIB Conversion
\par Date: Tue, 11 Apr 2006 11:28:30 -0400
\par Lines: 60
\par
\par
\par UNIDRV is doing differnt GrayScale conversions for Vector and Bitmap
\par Objects.
\par
\par In grayscale printmodes, GDI renders these differently
\par Vector objects use Gray = (R+G+B)/3
\par Bitmap objects use ?
\par Likely an NTSC luminance weighting, i.e., Gray = 0.3 * R + 0.59 * G + 0.11 *
\par B
\par
\par How Do I get UNIDRV to do a GrayScale conversion Like NTSC luminance
\par weighting for all objects?
\par
\par Here the current GPD Settings for ColorMode:
\par
\par *%====================================================================
\par *% ColorMode Feature
\par *%====================================================================
\par
\par *Feature: ColorMode
\par \{
\par *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
\par *DefaultOption: Color24
\par *Option: Mono1
\par \{
\par *rcNameID: =IDC_MONO_RADIO
\par *DevNumOfPlanes: 0
\par *DevBPP: 0
\par *DrvBPP: 8
\par *RasterMode: DIRECT
\par *IPCallbackID: 1
\par *Color? : FALSE
\par *Command: CmdSendBlockData \{ *Cmd: "" \}
\par *Command: CmdSelect
\par \{
\par *Order: DOC_SETUP.10
\par *Cmd: =""
\par \}
\par \}
\par *Option: Color24
\par \{
\par *rcNameID: =IDC_COLOR_RADIO
\par *DevNumOfPlanes: 0
\par *DevBPP: 0
\par *DrvBPP: 24
\par *RasterMode: DIRECT
\par *IPCallbackID: 2
\par *Color? : TRUE
\par *Command: CmdSendBlockData \{ *Cmd: "" \}
\par *Command: CmdSelect
\par \{
\par *Order: DOC_SETUP.10
\par *Cmd: =""
\par \}
\par \}
\par \}
\par
\par Thank you,
\par Guy Light
\par
\par
\par \pard
\par
\par }
------=_NextPart_0001_06ADE8FF--