C#
VB
C ++
上市班级SharpEneftect:Shadereffect
上市班级Sharpenefect
继承system.windows.media.effects.shadereffect
工具system.windows.media.animation.ianimatable
上市裁判课SharpEneffect:上市system.windows.media.effects.shadereffect,system.windows.media.animation.ianimatable
负清晰度值降低了图像的清晰度。指定-1000的最低清晰度。正清晰度值会增加清晰度。指定+1000,以最大程度的清晰度。
使用LeadTools;
使用Leadtools.codecs;
使用LeadTools.imageProcessing;
使用leadtools.windows.controls;
使用Leadtools.windows.media;
使用leadtools.windows.media.effects;
班级SharpEneffectexamplewindow:窗口
{
上市SharpEneffectexampleWindow()
{
Stackpanel sp =新的stackpanel();
content = sp;
ImageViewer theViewer =新的ImageViewer();
theviewer.horizontalalailmignment = hixontalAlignment.center;
theviewer.verticalAlignment = verticalAilignment.top;
theviewer.imageHorizontalAlignment = hixontalAlignment.left;
theviewer.imageverticalAlignment =垂直词法; top;
sp.Children.Add(viewer);
//创建滑块
TextBlock TB =新的textblock();
tb.HorizontalAlignment = hixontalAlignment.Center;
tb.text =“数量:”;
sp.Children.Add(TB);
滑块theslider =新的slider();
theslider. -minimine = -10.0;
theslider.maximum = 10.0;
theslider.width = 400;
theslider.Erientation = entientation.horizontal;
theslider.issnaptotickenabled =真的;
theslider.tickplacement = system.windows.controls.primitives.tickplacement.bottomright;
theslider.tickfrequency = 0.1;
theslider.autotooltippRecision = 2;
theslider.autotooltipplacement = system.windows.controls.primitives.autotooltipplacement.bottomright;
sp.Children.Add(Theslider);
//将图像加载到查看器中
theviewer.source =新的bitmapimage(新的uri(system.io.path.combine(lade_vars.imagesdir),“ Cannon.jpg”));
//创建效果
SharpEnefect效果=新的SharpEneffect();
效果。Amount= 1.0;
theviewer.imageEffect =效果;
//绑定属性
绑定结合=新的捆绑();
bind.source =效果;
bind.updatesourcetrigger = updatesourcetrigger.propertychanged;
bind.path =新的propertypath(“数量”);
theslider.setBinding(slider.valueproperty,bind);
标题=“使用SharpEnefect”;
}
}
静止的班级LEAD_VARS
{
上市const细绳ImagesDir =@“ C:\ LeadTools21 \ Resources \ Images”;
}
进口LeadTools
进口Leadtools.codecs
进口LeadTools.imageProcessing
进口Leadtools.windows.controls
进口leadtools.windows.media
进口leadtools.windows.media.effects
班级SharpEneffectexamplewindow
继承窗户
上市子新的()
暗淡sp作为新的stackpanel()
content = sp
暗淡观众作为新的ImageViewer()
theviewer.horizontalalailmignment = hixontalAlignment.center
theviewer.verticalAlignment =垂直安排
theviewer.imagehorizontalalailmignment = hixontalAlignment.Left
theviewer.imageVerticalAlignment =垂直词法
sp.Children.Add(浏览器)
'创建滑块
暗淡TB作为新的textblock()
tb.HorizontalAlignment = HixontalAlignment.Center
tb.text =“数量:”
sp.Children.Add(TB)
暗淡theslider作为新的slider()
theslider.minimine = -10.0
theslider.maximum = 10.0
theslider.width = 400
theslider.Erientation = eartientation.horizontal
theslider.issnaptotickenabled =真的
theslider.tickplacement = system.windows.controls.primitives.tickplacement.bottomright
theslider.tickfrequency = 0.1
theslider.autotooltippRecision = 2
theslider.autotooltipplacement = system.windows.controls.primitives.autotooltipplacement.bottomright
sp.Children.Add(Theslider)
'将图像加载到查看器中
theviewer.source =新的bitmapimage(新的uri(system.io.path.combine(lade_vars.imagesdir),“ Cannon.jpg”)))
'创造效果
暗淡影响作为新的SharpEneffect()
效果。Amount= 1.0
theviewer.imageEffect =效果
'结合属性
暗淡绑定作为新的捆绑()
bind.source =效果
bind.updatesourcetrigger = updatesourcetrigger.propertychanged
bind.path =新的propertypath(“数量”)
theslider.setbinding(slider.valueproperty,绑定)
标题=“使用SharpEnefect”
结尾子
结尾班级
上市简直是可靠的班级LEAD_VARS
上市constImagesDir作为细绳=“ C:\ LeadTools21 \ Resources \ Images”
结尾班级
帮助收集
栅格。网|C API|C ++类库|HTML5 JavaScript
文档。网|C API|C ++类库|HTML5 JavaScript
医疗的。网|C API|C ++类库|HTML5 JavaScript
医疗网络查看器。网
188宝金博怎么下载
支持的平台
.NET,JAVA,ANDROID和iOS/MACOS组件
C API/C ++类库
HTML5 JavaScript库
您的电子邮件已发送给支持!有人应该保持联系!如果您的事情紧急,请重新聊天。
聊天时间:
星期一 - 星期五,上午8:30至美国东部时间下午6点
感谢您的反馈意见!
请再次填写表格以开始新的聊天。
所有代理商目前都处于离线状态。
聊天时间:
星期一至星期五
8:30 AM - 美国东部标准时间下午6点
要与我们联系,请填写此表格,我们将通过电子邮件与您联系。