Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.67 KB

color-management.md

File metadata and controls

35 lines (25 loc) · 1.67 KB

FDNR配色管理器文档

配色管理器另支持自定义.xaml文件作为背景画刷,要求如下。

线性渐变画刷绘制“FDNR经典”的粉蓝渐变色:

<LinearGradientBrush  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" StartPoint="0,0" EndPoint="1,0" SpreadMethod="Reflect" Opacity="1">
    <LinearGradientBrush.GradientStops><GradientStop Color="#FFFBC2EB" Offset="0" />
    <GradientStop Color="#FFA6C1EE" Offset="1" /></LinearGradientBrush.GradientStops>
</LinearGradientBrush>

纯色画刷:

<SolidColorBrush xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">#FFFF</SolidColorBrush>

白色画刷截图

图像画刷(ImageBrush)。以下实例将使用一张来自https://t.alcy.cc/的随机图片作为背景:

<ImageBrush xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            Stretch="None"
            ImageSource="https://t.mwm.moe/pc"/>

随机图片背景