Programmatically Changing Display(s) to Greyscale
Programmatically Changing Display(s) to Greyscale
- Subject: Programmatically Changing Display(s) to Greyscale
- From: Grant Erickson <email@hidden>
- Date: Mon, 04 May 2009 10:23:01 -0700
- Thread-topic: Programmatically Changing Display(s) to Greyscale
While the Displays preference pane doesn't appear to allow it, the Universal
Access preference pane allows setting all active, online displays to
greyscale mode.
However, when using CGDisplayAvailableModes, the only modes that appear for
the current display width and height are 8-bit, 16-bit and 32-bit RGB modes
(3 samples per pixel).
Is there a Cocoa, CoreGraphics or other ApplicationServices API that handles
this mode selection or does this use an IOKit COM API? Given that
CGDisplayCurrentMode displays 32-bits, 3 samples per pixel even when
Universal Access is putting the displays in greyscale mode seems to hint at
the latter.
Regards,
Grant
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden