Reputation: 1085
I apologize in advance if this question has been answered already, but I wasn't able to get anything with a few googles.
I have a photoshop image with an 8-bit color profile. I'm converting it into a WPF app using Blend. When I run the application, however, the colors I input are not the colors that are being rendered.
Specifically, the gray I have is #111111. This is what I have in Blend (BorderBrush="#FF111111"), and it's what I'm showing in photoshop. When I run the application, however, I noticed a difference in my colors. I did a screen-shot on the rendered app, and I'm getting #090909.
These are subtle gray tones, and it's actually having a very large visual impact on the application.
Is there something I'm missing here, or do I just have to guess at what the values "should" be until WPF actually gets them right...?
Upvotes: 4
Views: 495
Reputation: 155
Photoshop is color-managed. If your WPF app is not color-managed your output colors will be different on a calibrated monitor. To fix your issue please convert to sRGB your image profile in Photoshop first. Otherwise you can implement color-management in WPF by using a nuget library such as Mscms.WPF
Upvotes: 0
Reputation: 18187
Actually this was MY problem. When I pasted into Photoshop, I wasn't using the correct file type, so it was actually Photoshop that was changing the color. Try using the Web preset when creating the photoshop document for proper color settings.
Original: Robear's comment
Upvotes: 0