c#
VB
objective - c
c++
Java
公共LeadRectRectangleFromImage (
RasterViewPerspectiveviewPerspective,
LeadRect钢筋混凝土
)
公共函数RectangleFromImage (_
按值传递viewPerspective作为RasterViewPerspective,_
按值传递钢筋混凝土作为LeadRect_
)作为LeadRect
——(LeadRect) rectangleFromImage:(LTRasterViewPerspective)viewPerspective
sourceRect: src (LeadRect)
公共LeadRect rectangleFromImage (
RasterViewPerspectiveviewPerspective,
LeadRect钢筋混凝土
)
公共:
LeadRectRectangleFromImage (
RasterViewPerspectiveviewPerspective,
LeadRect钢筋混凝土
)
viewPerspective
矩形的目标视图的角度应该翻译。
钢筋混凝土
矩形翻译。
翻译后的矩形。
这个例子中发现的选定矩形图像在TopLeft ViewPerspective。
使用Leadtools;
使用Leadtools.Codecs;
使用Leadtools.ImageProcessing;
使用Leadtools.ImageProcessing.Core;
使用Leadtools.ImageProcessing.Color;
使用Leadtools.Dicom;
使用Leadtools.Drawing;
使用Leadtools.Controls;
使用Leadtools.Svg;
公共无效RectangleFromImageExample ()
{
RasterCodecs编解码器=新RasterCodecs ();
/ /加载的图像BottomLeft ViewPerspective
RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,“ULAY1.BMP”));
LeadRect imageRectangle =新LeadRect(0, 0,形象。宽度- 1,形象。高度- 1);
imageRectangle = image.RectangleFromImage (Leadtools.RasterViewPerspective。TopLeft imageRectangle);
Console.WriteLine (字符串.Format (“{0},{1},{2},{3}”,imageRectangle。离开了,imageRectangle。前,imageRectangle。右,imageRectangle.Bottom));
imageRectangle =新LeadRect(0, 0,形象。宽度- 1,形象。高度- 1);
imageRectangle = image.RectangleToImage (Leadtools.RasterViewPerspective。TopLeft imageRectangle);
Console.WriteLine (字符串.Format (“{0},{1},{2},{3}”,imageRectangle。离开了,imageRectangle。前,imageRectangle。右,imageRectangle.Bottom));
image.Dispose ();
codecs.Dispose ();
}
静态类LEAD_VARS
{
公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;
}
进口Leadtools
进口Leadtools.Codecs
进口Leadtools.ImageProcessing
进口Leadtools.ImageProcessing.Core
进口Leadtools.ImageProcessing.Color
进口Leadtools.Controls
进口Leadtools.Dicom
进口Leadtools.Drawing
进口Leadtools.Svg
公共子RectangleFromImageExample ()
昏暗的编解码器作为RasterCodecs =新RasterCodecs ()
“加载的图像BottomLeft ViewPerspective
昏暗的图像作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“ULAY1.BMP”))
昏暗的ImageRectangle作为LeadRect =新LeadRect(0, 0,形象。宽度- 1,形象。高度- 1)
ImageRectangle = image.RectangleFromImage (RasterViewPerspective。TopLeft ImageRectangle)
Console.WriteLine (字符串.Format (“{0},{1},{2},{3}”,ImageRectangle。离开了,ImageRectangle。前,ImageRectangle。对,ImageRectangle.Bottom))
ImageRectangle =新LeadRect(0, 0,形象。宽度- 1,形象。高度- 1)
ImageRectangle = image.RectangleToImage (RasterViewPerspective。TopLeft ImageRectangle)
Console.WriteLine (字符串.Format (“{0},{1},{2},{3}”,ImageRectangle。离开了,ImageRectangle。前,ImageRectangle。对,ImageRectangle.Bottom))
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
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。