c#
VB
c++
公共类ContourFilterCommand:RasterCommand
公共类ContourFilterCommand
继承了RasterCommand
公共ref类ContourFilterCommand:公共RasterCommand
比特每像素的图像变化影响根据类型属性的值,或者类型参数的构造函数如下:
如果类型是 | 每像素比特将: |
薄 | 8位/像素的灰度 |
LinkBlackWhite | 1比特每像素 |
LinkGray | 8位/像素的灰度 |
LinkColor | 8位/像素的颜色 |
ApproxColor | 8位/像素的颜色 |
该命令支持12和16位灰度和48和64位彩色图像。支持12和16位灰度和48和64位彩色图像只在可用文档/医疗工具包。
运行ContourFilterCommand在一个图像。
使用Leadtools;
使用Leadtools.Codecs;
使用Leadtools.ImageProcessing.Effects;
公共无效ContourFilterCommandExample ()
{
/ /加载一个图像
RasterCodecs编解码器=新RasterCodecs ();
编解码器。ThrowExceptionsOnInvalidImages =真正的;
RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,@“ImageProcessingDemo \ Beauty16.jpg”CodecsLoadByteOrder), 16日。BgrOrGray 1 1);
/ /准备命令
ContourFilterCommand命令=新ContourFilterCommand ();
命令。阈值= 15;
命令。DeltaDirection = 35;
命令。MaximumError = 5;
命令。类型= ContourFilterCommandType.Thin;
command.Run(图片);
编解码器。保存(形象,Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”),RasterImageFormat。Jpeg、24);
}
静态类LEAD_VARS
{
公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;
}
进口Leadtools
进口Leadtools.Codecs
进口Leadtools.ImageProcessing.Effects
公共子ContourFilterCommandExample ()
昏暗的编解码器作为新RasterCodecs ()
编解码器。ThrowExceptionsOnInvalidImages =真正的
昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“Master.jpg”))
“准备的命令
昏暗的命令作为ContourFilterCommand =新ContourFilterCommand
命令。阈值= 15
命令。DeltaDirection = 35
命令。MaximumError = 5
命令。类型= ContourFilterCommandType.Thin
command.Run (leadImage)
编解码器。保存(leadImage Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”),RasterImageFormat。Jpeg, 24)
结束子
公共NotInheritable类LEAD_VARS
公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”
结束类
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。