Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/HandyOrg/HandyControl
Browse files Browse the repository at this point in the history
  • Loading branch information
NaBian committed Oct 11, 2020
2 parents d9db496 + 594e867 commit 86f7c30
Show file tree
Hide file tree
Showing 53 changed files with 343 additions and 4,227 deletions.
1 change: 0 additions & 1 deletion doc/source/handycontrol/data/GrowlInfo/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: GrowlInfo
date: 2019-04-02 22:16:16
---

{% note info no-icon %}
Expand Down
1 change: 0 additions & 1 deletion doc/source/handycontrol/data/InfoType/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: InfoType
date: 2019-04-02 22:27:13
---

{% note info no-icon %}
Expand Down
72 changes: 71 additions & 1 deletion doc/source/handycontrol/tools/effect/index.md
Original file line number Diff line number Diff line change
@@ -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>
```
20 changes: 19 additions & 1 deletion doc/source/handycontrol/tools/hatchBrushGenerator/index.md
Original file line number Diff line number Diff line change
@@ -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, 前景色, 背景色);
```
4 changes: 2 additions & 2 deletions doc/source/handycontrol/tools/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 建设中
title: 工具和扩展
---

建设中
除了扩展控件,hc还提供了很多有用的工具和扩展,包括特效、动画、笔刷等等。
94 changes: 0 additions & 94 deletions doc/themes/next/.github/CODE_OF_CONDUCT.md

This file was deleted.

Loading

0 comments on commit 86f7c30

Please sign in to comment.