Click here to Skip to main content
15,895,011 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Disable the Maximize button in WPF Pin
Christian Graus2-Oct-09 22:45
protectorChristian Graus2-Oct-09 22:45 
AnswerRe: Disable the Maximize button in WPF Pin
Mark Salsbery3-Oct-09 10:55
Mark Salsbery3-Oct-09 10:55 
GeneralRe: Disable the Maximize button in WPF Pin
Christian Graus3-Oct-09 11:55
protectorChristian Graus3-Oct-09 11:55 
GeneralRe: Disable the Maximize button in WPF Pin
Mark Salsbery3-Oct-09 12:01
Mark Salsbery3-Oct-09 12:01 
GeneralRe: Disable the Maximize button in WPF Pin
Christian Graus3-Oct-09 12:25
protectorChristian Graus3-Oct-09 12:25 
AnswerRe: Disable the Maximize button in WPF Pin
priyagee14-Oct-09 3:11
priyagee14-Oct-09 3:11 
AnswerRe: Disable the Maximize button in WPF Pin
Thrash50519-Apr-10 9:07
Thrash50519-Apr-10 9:07 
QuestionHow do I insure that WPF uses ICC profiles to avoid color degradation? [modified] Pin
fjparisIII2-Oct-09 12:53
fjparisIII2-Oct-09 12:53 
I have a WPF image viewing program that I thought for sure was automatically using ICC color profiles imbedded in bitmap images. I thought this for two reasons: (1) I never found any properties in classes like Image, JpegBitmapDecoder, or TiffBitmapDecoder that let you specify whether color profiles are used, so I thought it just did it by default; (2) None of my beta testers ever complained. In fact I had one raving about the high quality of image rendering my app had on his high gamut monitor, and I also have a high gamut monitor where the images just knock your socks off. But I now suspect that the colors look accurate only because the images use the sRGB color space.

In a previous app using GDI+, I had to explicitly tell GDI+ to use ICC color profiles by passing true for the icm parameter of various Bitmap constructor overloads, and it was obvious that this was working, because when I used Adobe RGB for my TIFF files and sRGB for my JPEG files and I A/B'd them, there was no perceptable color difference. If they were not used, the TIFF files would appear washed out because sRGB is used by default if you don't explicitly tell GDI+ to use ICC color profiles. They appear washed out because Adobe RGB has a wider color gamut than sRGB.

But when I specifically A/B'd the same under my WPF application, I was appalled to see that the ICC color profiles built into the images were not being used! My sRGB images looked great and my Adobe RGB imaes looked washed out, whereas in Photoshop they looked the same. Now WPF is touted to be an outstanding replacement for GDI+ applications that Windows Forms and C++/MFC applications were forced to use.

What is really surprising is that the BitmapFrame class (the class I use to display images) has a ColorContexts property that has the ICC color profiles! So why wouldn't it be using them??? This is a read-only property and there doesn't seem to be any other property that would tap the BitmapFrame class on the shoulder and say, "Hey, use your ColorContexts property to display the bitmap, dummy."

Since it has the ICC color profiles right there in front of it, I find it impossible to believe that WPF does not have a way of telling its visual layer to use them. If it doesn't, this would be an application killer of a defect and I'm just sunk: nine months of development down the drain! Please tell me I'm just blind and have somehow missed the property that I must set to get WPF to use ICC color profiles! What is it that I have to do?

modified on Friday, October 2, 2009 9:12 PM

AnswerRe: How do I insure that WPF uses ICC profiles to avoid color degradation? Pin
Pete O'Hanlon4-Oct-09 11:23
mvePete O'Hanlon4-Oct-09 11:23 
GeneralRe: How do I insure that WPF uses ICC profiles to avoid color degradation? Pin
fjparisIII5-Oct-09 5:03
fjparisIII5-Oct-09 5:03 
QuestionDynamic Controls not Stretching to Container Width Pin
Jeremy Likness2-Oct-09 11:54
professionalJeremy Likness2-Oct-09 11:54 
AnswerRe: Dynamic Controls not Stretching to Container Width Pin
Mark Salsbery3-Oct-09 10:46
Mark Salsbery3-Oct-09 10:46 
GeneralRe: Dynamic Controls not Stretching to Container Width Pin
Jeremy Likness3-Oct-09 14:23
professionalJeremy Likness3-Oct-09 14:23 
QuestionCustom Binding Path Pin
Fabrizio Camagna2-Oct-09 7:56
Fabrizio Camagna2-Oct-09 7:56 
QuestionRe: Custom Binding Path Pin
Mark Salsbery2-Oct-09 9:58
Mark Salsbery2-Oct-09 9:58 
AnswerRe: Custom Binding Path Pin
Fabrizio Camagna2-Oct-09 21:40
Fabrizio Camagna2-Oct-09 21:40 
GeneralRe: Custom Binding Path Pin
Mark Salsbery3-Oct-09 10:41
Mark Salsbery3-Oct-09 10:41 
QuestionSaving data to a form Pin
woofie1-Oct-09 18:32
woofie1-Oct-09 18:32 
AnswerRe: Saving data to a form Pin
Christian Graus1-Oct-09 20:33
protectorChristian Graus1-Oct-09 20:33 
QuestionHttpContext Pin
cdpace30-Sep-09 20:57
cdpace30-Sep-09 20:57 
AnswerRe: HttpContext Pin
Pete O'Hanlon30-Sep-09 23:39
mvePete O'Hanlon30-Sep-09 23:39 
Question[Message Deleted] Pin
priyagee30-Sep-09 19:48
priyagee30-Sep-09 19:48 
AnswerRe: To open microsoft word document in ribbontoolbar button in wpf Pin
Christian Graus1-Oct-09 12:40
protectorChristian Graus1-Oct-09 12:40 
AnswerRe: To open microsoft word document in ribbontoolbar button in wpf Pin
MSOffice Canada2-Oct-09 3:22
MSOffice Canada2-Oct-09 3:22 
NewsFree Silverlight Training Videos Pin
brucedkyle30-Sep-09 11:20
brucedkyle30-Sep-09 11:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.