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?
Printing in grayscale
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
- Ivan - Tracker Software
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
- Contact:
Re: Printing in grayscale
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.
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.
Re: Printing in grayscale
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)?
I see that grayscale shows either black or white, so what do Monochrome and B&W mean (They have shades of gray)?
- Ivan - Tracker Software
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
- Contact:
Re: Printing in grayscale
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.
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.
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.