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

**Does WPF only support 8-bit depth final display output ?** #10486

Open
IOL0ol1 opened this issue Feb 21, 2025 · 5 comments
Open

**Does WPF only support 8-bit depth final display output ?** #10486

IOL0ol1 opened this issue Feb 21, 2025 · 5 comments
Labels
Question General question, not a problem in source code or documentation (yet)

Comments

@IOL0ol1
Copy link

IOL0ol1 commented Feb 21, 2025

I created Gray8 and Gray16 WriteableBitmap grayscale gradient images, respectively, and they look the same on a 10-bit screen. All color maps to 8-bit depth.
I tried using D3DImage, but I still didn't get a grayscale map with a 10-bit depth display.
So, Does anyone have an example of WPF displaying a 10-bit grayscale map?

@himgoyalmicro himgoyalmicro added the Question General question, not a problem in source code or documentation (yet) label Feb 21, 2025
@miloush
Copy link
Contributor

miloush commented Feb 21, 2025

Since WPF uses Direct3D 9, only 8-bit output is supported. 10-bit is only available on Direct3D 10 hardware level. It is unclear to me whether newer hardware with older Direct3D would allow creating 10-bit output format, but either way the swap chain in WPF would need to be updated.

@lindexi
Copy link
Member

lindexi commented Feb 24, 2025

Reference: #4569

@miloush
Copy link
Contributor

miloush commented Feb 24, 2025

ha thanks, looks like I now know more than I did before :)

@IOL0ol1
Copy link
Author

IOL0ol1 commented Feb 24, 2025

ha thanks, looks like I now know more than I did before :)

Me too. WPF probably won't change this issue. I'm looking for a way to render manually in DirectX or OpenGL.

@miloush
Copy link
Contributor

miloush commented Feb 24, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question General question, not a problem in source code or documentation (yet)
Projects
None yet
Development

No branches or pull requests

4 participants