Printing in grayscale

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
guy.marom
User
Posts: 98
Joined: Tue Feb 17, 2009 12:08 pm

Printing in grayscale

Post by guy.marom »

Hello,
I'm using the API to print documents, and I want to print in grayscale.
Graphics.Color.Convert.Method and Graphics.Indexed.Convert.Method control only images, and I want it to apply to text as well.
I also noticed that MS-Word clipart images also do not get converted but stay colorful.

Is there a way to do this?
guy.marom
User
Posts: 98
Joined: Tue Feb 17, 2009 12:08 pm

Re: Printing in grayscale

Post by guy.marom »

Anyone?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Printing in grayscale

Post by Ivan - Tracker Software »

Use Graphics.MonoAndDrawings.Convert.Method
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
guy.marom
User
Posts: 98
Joined: Tue Feb 17, 2009 12:08 pm

Re: Printing in grayscale

Post by guy.marom »

OK this is working. Thanks!
I see that grayscale shows either black or white, so what do Monochrome and B&W mean (They have shades of gray)?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Printing in grayscale

Post by Ivan - Tracker Software »

As I see, there is some mistake into hanlding convetion colors for drawings - grayscale is always used as B&W - will fix into the next build.
By the way, method "ToMonochrome" (2) used only for brushed pens, and will convert such brushes to bi-level images (not always black-and-white, but two colors).
method "ToBlackAndWhite" (3) converts to B&W 1bpp images and drawings (for this method parameter Graphics.MonoAndDrawings.Convert.Thresold also used), and method "ToGrayscale" (1) will convert to 1bpp images to use grayscale palette, and colors of drawings will be converted to grayscale.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
Post Reply