Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZDesigner: Investigate ability to set dithering #1123

Open
tresf opened this issue Apr 28, 2023 · 2 comments
Open

ZDesigner: Investigate ability to set dithering #1123

tresf opened this issue Apr 28, 2023 · 2 comments

Comments

@tresf
Copy link
Contributor

tresf commented Apr 28, 2023

Winspool's DEVMODE offers a dithering option called dmDitherType. Possible values are:

/* Dither types */
#define DMDITHER_NONE           1      /* No dithering */
#define DMDITHER_COARSE         2      /* Dither with a coarse brush */
#define DMDITHER_FINE           3      /* Dither with a fine brush */
#define DMDITHER_LINEART        4      /* LineArt dithering */
#define DMDITHER_ERRORDIFFUSION 5      /* LineArt dithering */
#define DMDITHER_RESERVED6      6      /* LineArt dithering */
#define DMDITHER_RESERVED7      7      /* LineArt dithering */
#define DMDITHER_RESERVED8      8      /* LineArt dithering */
#define DMDITHER_RESERVED9      9      /* LineArt dithering */
#define DMDITHER_GRAYSCALE      10     /* Device does grayscaling */

Header file: WinGDI.h.

I'm curious if the ZDesigner driver utilizes these properties and -- if so -- can we manipulate them at print time?

smoothDithering

Possible blocker: java-native-access/jna#1429

@Vzor-
Copy link
Contributor

Vzor- commented Oct 17, 2023

https://learn.microsoft.com/en-us/troubleshoot/windows/win32/modify-printer-settings-documentproperties

It looks involved but we should be able to do it. This would be changing the setting of the printer, for all prints. Is that something we want? or would we do something like set this value, then unset it.

@tresf
Copy link
Contributor Author

tresf commented Oct 17, 2023

It looks involved but we should be able to do it. This would be changing the setting of the printer, for all prints. Is that something we want? or would we do something like set this value, then unset it.

Let's make all settings temporary, but provide a persistent flag to lock it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants