update doc
This commit is contained in:
1 parent
db8ce28254
commit
8bb36c2073
46 files changed
+93
-4185
No files matched your search
@@ -1,6 +1,5 @@
|
||||
---
|
||||
title: GrowlInfo
|
||||
date: 2019-04-02 22:16:16
|
||||
---
|
||||
|
||||
{% note info no-icon %}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
title: InfoType
|
||||
date: 2019-04-02 22:27:13
|
||||
---
|
||||
|
||||
{% note info no-icon %}
|
||||
|
||||
@@ -1,3 +1,73 @@
|
||||
---
|
||||
title: Effect
|
||||
title: Effect 特效
|
||||
---
|
||||
|
||||
# BlendEffectBox 特效混合器
|
||||
|
||||
通过特效混合器可以很方便得把多种特效应用在同一个控件上:
|
||||
|
||||
```xml
|
||||
<hc:BlendEffectBox>
|
||||
<hc:BlendEffectBox.Effects>
|
||||
<BlurEffect Radius="30"/>
|
||||
<hc:BrightnessEffect Brightness="1"/>
|
||||
<hc:ContrastEffect Contrast="20"/>
|
||||
</hc:BlendEffectBox.Effects>
|
||||
// 你的控件
|
||||
</hc:BlendEffectBox>
|
||||
```
|
||||
|
||||
# BrightnessEffect 明度特效
|
||||
|
||||
```xml
|
||||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
|
||||
<Image.Effect>
|
||||
<hc:BrightnessEffect Brightness="1"/>
|
||||
</Image.Effect>
|
||||
</Image>
|
||||
```
|
||||
|
||||
# ColorComplementEffect 补色特效
|
||||
|
||||
```xml
|
||||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
|
||||
<Image.Effect>
|
||||
<hc:ColorComplementEffect/>
|
||||
</Image.Effect>
|
||||
</Image>
|
||||
```
|
||||
|
||||
# ColorMatrixEffect 颜色矩阵特效
|
||||
|
||||
```xml
|
||||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
|
||||
<Image.Effect>
|
||||
<hc:ColorMatrixEffect M11="-1" M22="-1" M33="-1" M41="1" M42="1" M43="1" M44="1" M51="1"/>
|
||||
</Image.Effect>
|
||||
</Image>
|
||||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
|
||||
<Image.Effect>
|
||||
<hc:ColorMatrixEffect M11="1.5" M21="1.5" M31="1.5" M12="1.5" M22="1.5" M32="1.5" M13="1.5" M23="1.5" M33="1.5" M51="-1" M52="-1" M53="-1"/>
|
||||
</Image.Effect>
|
||||
</Image>
|
||||
```
|
||||
|
||||
# ContrastEffect 对比度特效
|
||||
|
||||
```xml
|
||||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
|
||||
<Image.Effect>
|
||||
<hc:ContrastEffect Contrast="20"/>
|
||||
</Image.Effect>
|
||||
</Image>
|
||||
```
|
||||
|
||||
# GrayScaleEffect 灰度特效
|
||||
|
||||
```xml
|
||||
<Image Width="120" Height="120" Source="/HandyControlDemo;component/Resources/Img/Album/10.jpg">
|
||||
<Image.Effect>
|
||||
<hc:GrayScaleEffect Scale=".7"/>
|
||||
</Image.Effect>
|
||||
</Image>
|
||||
```
|
||||
@@ -1,3 +1,21 @@
|
||||
---
|
||||
title: HatchBrushGenerator
|
||||
title: HatchBrushGenerator 阴影画笔生成器
|
||||
---
|
||||
|
||||
HC提供了50多种不同图案的阴影样式,其行为与winform中的表现一致.
|
||||
|
||||
# 案例
|
||||
|
||||
## 基础用法
|
||||
|
||||
我们先创建一个阴影画笔生成器实例:
|
||||
|
||||
```cs
|
||||
var brushGenerator = new HatchBrushGenerator();
|
||||
```
|
||||
|
||||
再调用 `GetHatchBrush` 方法,传入 `HatchStyle` 枚举、前景色、背景色,即可返回一个 `DrawingBrush` 画刷.
|
||||
|
||||
```cs
|
||||
var brush = brushGenerator.GetHatchBrush(HatchStyle.Horizontal, 前景色, 背景色);
|
||||
```
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 建设中
|
||||
title: 工具和扩展
|
||||
---
|
||||
|
||||
建设中
|
||||
除了扩展控件,hc还提供了很多有用的工具和扩展,包括特效、动画、笔刷等等。
|
||||
Reference in new issue
Block a user