【发布时间】:2015-04-17 18:40:25
【问题描述】:
<StackPanel Margin="2">
<Button Name="btn" Click="btn_Click" Content="Load Profile Image">
<Button.Background>
<ImageBrush ImageSource="D:\Pictures\rectangles.jpg"></ImageBrush>
</Button.Background>
</Button>
</StackPanel>
我在这里粘贴的图像几乎是黑色的,所以我想将内容颜色更改为白色,以便它应该正确显示。
抱歉,我没有在用逗号引用的标题中添加颜色,抱歉我的错误。现在没关系,我想现在读者很清楚了;)
【问题讨论】:
-
我不确定你在这里问什么。您的 ImageBrush 采用 ImageSource(不更改它)并将其显示为按钮的背景。如果您希望图像“更亮”,则需要更改图像的亮度。
-
你能给我们看看这张“rectangles.jpg”图片吗?
-
谢谢 Mike Eason 和 Lujasz Rejman。