c#
VB
objective - c
c++
Java
公共无效FlipRegion ()
公共子FlipRegion ()
—(BOOL)flipRegion:(NSError **)错误
公共无效flipRegion ()
公共:无效FlipRegion ();
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing;使用Leadtools.ImageProcessing.Core;使用Leadtools.ImageProcessing.Color;使用Leadtools.Dicom;使用Leadtools.Drawing;使用Leadtools.Controls;使用Leadtools.Svg;公共无效FlipRegionExample (){RasterCodecs codecs =新RasterCodecs ();字符串srcFileName = Path.Combine(LEAD_VARS.ImagesDir,“Image1.cmp”);字符串destFileName1 = Path.Combine(LEAD_VARS.ImagesDir,“Image1_OriginalRegion.bmp”);字符串destFileName2 = Path.Combine(LEAD_VARS.ImagesDir,“Image1_OffsetRegion.bmp”);字符串destFileName3 = Path.Combine(LEAD_VARS.ImagesDir,“Image1_FlipRegion.bmp”);字符串destFileName4 = Path.Combine(LEAD_VARS.ImagesDir,“Image1_ReverseRegion.bmp”);//加载图像RasterImage image = codecs.Load(srcFileName);//在图像的矩形区域内添加一个椭圆LeadRect rc =新LeadRect(0,0, image。宽度/ 3,图像。身高/ 6);的形象。AddEllipseToRegion (零, rc, RasterRegionCombineMode.Set);//克隆镜像,并对其运行镜像处理命令InvertCommand命令=新InvertCommand ();RasterImage imageWithRegion = image.Clone();command.Run (imageWithRegion);编解码器。保存(imageWithRegion, destFileName1, RasterImageFormat.Bmp, 24);imageWithRegion.Dispose ();//偏移区域的形象。OffsetRegion(100年,50);imageWithRegion = image.Clone();command.Run (imageWithRegion);编解码器。保存(imageWithRegion, destFileName2, RasterImageFormat.Bmp, 24);imageWithRegion.Dispose ();//翻转区域image.FlipRegion ();imageWithRegion = image.Clone();command.Run (imageWithRegion);编解码器。保存(imageWithRegion, destFileName3, RasterImageFormat.Bmp, 24);imageWithRegion.Dispose ();//翻转区域image.ReverseRegion ();imageWithRegion = image.Clone();command.Run (imageWithRegion);编解码器。保存(imageWithRegion, destFileName4, RasterImageFormat.Bmp, 24);imageWithRegion.Dispose ();image.Dispose ();codecs.Dispose ();}静态类LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools。编解码器进口Leadtools。ImageProcessing进口Leadtools.ImageProcessing.Core进口Leadtools.ImageProcessing.Color进口Leadtools。控制进口Leadtools。Dicom进口Leadtools。画进口Leadtools.Svg公共子FlipRegionExample ()昏暗的编解码器作为RasterCodecs =新RasterCodecs ()昏暗的srcFileName作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Image1.cmp”)昏暗的destFileName1作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Image1_OriginalRegion.bmp”)昏暗的destFileName2作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Image1_OffsetRegion.bmp”)昏暗的destFileName3作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Image1_FlipRegion.bmp”)昏暗的destFileName4作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Image1_ReverseRegion.bmp”)载入图像昏暗的图像作为RasterImage = codecs.Load(srcFileName)'在图像的矩形区域内添加一个椭圆昏暗的钢筋混凝土作为LeadRect =新LeadRect(0,0, image。宽度\ 3,图像。身高\ 6)的形象。AddEllipseToRegion (没有什么, rc, RasterRegionCombineMode。集)克隆此图像并在其上运行图像处理命令昏暗的命令作为InvertCommand =新InvertCommand ()昏暗的imageWithRegion作为RasterImage = image.Clone()command.Run (imageWithRegion)编解码器。保存(imageWithRegion, destFileName1, RasterImageFormat.Bmp, 24)imageWithRegion.Dispose ()'偏移区域的形象。OffsetRegion(100年,50)imageWithRegion = image.Clone()command.Run (imageWithRegion)编解码器。保存(imageWithRegion, destfileame2, RasterImageFormat.Bmp, 24)imageWithRegion.Dispose ()翻转区域image.FlipRegion ()imageWithRegion = image.Clone()command.Run (imageWithRegion)编解码器。保存(imageWithRegion, destfileame3, RasterImageFormat.Bmp, 24)imageWithRegion.Dispose ()翻转区域image.ReverseRegion ()imageWithRegion = image.Clone()command.Run (imageWithRegion)编解码器。保存(imageWithRegion, destFileName4, RasterImageFormat.Bmp, 24)imageWithRegion.Dispose ()image.Dispose ()codecs.Dispose ()结束子公共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
医疗网络查看器net
188宝金博怎么下载
支持的平台上
.NET、Java、Android和iOS/macOS程序集
C API/ c++类库
HTML5 JavaScript库
您的邮件已发送给技术支持!应该有人联系!如果你的事情很紧急,请回来聊天。
聊天时间:
周一至周五,美国东部时间上午8:30至下午6:00
感谢您的反馈!
请再次填写表格,开始新的聊天。
所有代理目前都离线。
聊天时间:
星期一至星期五
美国东部时间上午8:30 -下午6点
如需与我们联系,请填写此表格,我们将通过电子邮件与您联系。
