-
C# WPF实现图片浮雕、凹凸的图像效果
Visual C# WPF实现图片浮雕、凹凸的图像效果,看上去很有雕刻的效果,这个功能对于熟悉PS的朋友,可能不陌生,用C#的WPF技术,可以轻松实现类似效果,只是说法不一样,在本例中,叫做“凹凸位图特效”,本代码在功能实现上,分为全部实现和局部实现,代码参考如下:
private void button1_Click(object sender, RoutedEventArgs e)
{//凹凸位图特效全部作用于图像
this.image1.BitmapEffectInput = null;
var MyEffect = new System.Windows.Media.Effects.EmbossBitmapEffect();
MyEffect.Relief = 0.8;
MyEffect.LightAngle =320;
this.image1.BitmapEffect = MyEffect;
}
private void button2_Click(object sender, RoutedEventArgs e)
{//凹凸位图特效部分作用于图像
var MyEffect = new System.Windows.Media.Effects.EmbossBitmapEffect();
MyEffect.Relief = 0.8;
MyEffect.LightAngle = 320;
this.image1.BitmapEffect = MyEffect;
var MyInput = new System.Windows.Media.Effects.BitmapEffectInput();
MyInput.AreaToApplyEffect = new Rect(.25, .25, .50, .50);
MyInput.AreaToApplyEffectUnits = System.Windows.Media.BrushMappingMode.RelativeToBoundingBox;
this.image1.BitmapEffectInput= MyInput;
}
完整
- 2022-02-20 09:13:59下载
- 积分:1
-
AD_20160807
freescale MCU,S12G128的ADC模块与PWM模块的使用,通过电位器模拟电压输入,控制PWM的占空比输出,可以控制LED灯、电机驱动等任务。(freescale MCU S12G128 ADC module and PWM module, an analog signal input control the PWM duty)
- 2016-08-08 18:59:20下载
- 积分:1
-
c++ 中文分词程序
基于阿尔科夫模型的分词逻辑,与传统分词词典结合。既能识别已有词汇,又能根据概率算法学习新的词汇。
- 2022-01-29 04:08:52下载
- 积分:1
-
lic_Xilinx_ISE_Vivado
这是Xilinx ISE 14.X以及vivado、vivado_hls的license,亲测可用(Xilinx ISE 14.x vivado, vivado_hls license, pro-test available)
- 2013-04-26 14:51:09下载
- 积分:1
-
相关数据手册和参考文献
说明: MFRC522射频读卡器数据手册 IC-S50数据手册 包含相关性能简介(MFRC522 Radio Frequency Card Reader Data Manual IC-S50 Data Manual Contains a Brief Introduction to Related Performance)
- 2020-06-21 04:00:02下载
- 积分:1
-
ex5-1
这是一个使用8051制作的数字时钟,使用2个弹跳按钳和4个共阳七段显示器组合而成.(It is a production of the 8051 Digital Clock, use two bouncing by clamp and four monitors in paragraph 107 of a total of Shenyang combination.)
- 2007-01-16 00:10:13下载
- 积分:1
-
trackbar自定义控件
trackbar自定义控件 -trackbar Custom Controls Custom Controls trackbar
- 2022-03-10 08:00:21下载
- 积分:1
-
LCD&OV7725
使用stm32f4搭载ov7725,进行图像读取与数据处理,能稳定显示在lcd显示屏上,并且提取黑线(The use of stm32f4 equipped with ov7725, image reading and data processing, can be stably displayed on the LCD display, and extract black lines)
- 2017-08-05 09:50:35下载
- 积分:1
-
SMG_Digitald_ynamic_display
数码管动态移位显示,值得初学都学习和借鉴,中间有注释(Digital dynamic display)
- 2013-03-28 20:49:05下载
- 积分:1
-
SyslogGather
SyslogGather.exe其实就是一款测试SYSLOG的绿色版软件。可以设置默认端口,默认是514,可以设置是否保存日志。如果你选择了这个选项,则日志在SyslogGather.exe同目录下的logfiles目录中。为纯文本格式。
可能你会说SyslogGather.exe功能并不强大,但是作为一个基本的SYSLOG接收器,倒是也非常轻便。平时做测试的时候,还是非常方便的。
(SyslogGather.exe SYSLOG is actually a green version of the software testing. You can set the default port, the default is 514, you can set whether to save the log. If you choose this option, then log in SyslogGather.exe same directory logfiles directory. To plain text format.
You might say SyslogGather.exe function is not strong, but as a basic SYSLOG receiver touches are also very lightweight. Usually do testing, is very convenient.)
- 2013-11-16 15:41:22下载
- 积分:1