in PhotoEditor/DetailPage.cpp [247:280]
void DetailPage::UpdateEffectBrush(hstring const& propertyName)
{
if (m_combinedBrush)
{
if (propertyName == L"Exposure")
{
m_combinedBrush.Properties().InsertScalar(L"ExposureEffect.Exposure", Item().Exposure());
}
else if (propertyName == L"Temperature")
{
m_combinedBrush.Properties().InsertScalar(L"TemperatureAndTintEffect.Temperature", Item().Temperature());
}
else if (propertyName == L"Tint")
{
m_combinedBrush.Properties().InsertScalar(L"TemperatureAndTintEffect.Tint", Item().Tint());
}
else if (propertyName == L"Contrast")
{
m_combinedBrush.Properties().InsertScalar(L"ContrastEffect.Contrast", Item().Contrast());
}
else if (propertyName == L"Saturation")
{
m_combinedBrush.Properties().InsertScalar(L"SaturationEffect.Saturation", Item().Saturation());
}
else if (propertyName == L"BlurAmount")
{
m_combinedBrush.Properties().InsertScalar(L"BlurEffect.BlurAmount", Item().BlurAmount());
}
else if (propertyName == L"Intensity")
{
m_combinedBrush.Properties().InsertScalar(L"SepiaEffect.Intensity", Item().Intensity());
}
}
}