公共ObservableCollection <RasterCommentMetadata{>评论得到;}
公共只读的财产评论作为ObservableCollection (RasterCommentMetadata)
@ property(原子、分配、只读的、可以为空)NSMutableArray < LTRasterCommentMetadata * > *评论
公共< RasterCommentMetadata > getComments列表()
公共:
财产ObservableCollection < RasterCommentMetadata ^ > ^{评论
ObservableCollection < RasterCommentMetadata ^ > ^ get ();
}
的集合RasterCommentMetadata阅读和写作时使用特定的文件格式(包括GIF)。
等格式允许您存储非图像数据评论、标签和标记。
你可以操纵图像通过添加/删除的评论RasterCommentMetadata对象集合。
通过设置CodecsSaveOptions.Comments属性为true调用之前RasterCodecs.Save在评论,你可以保存在这个集合图像保存到一个文件中。
通过设置CodecsLoadOptions.Markers属性为true调用之前RasterCodecs.Load,你可以加载所有的标记(如果有的话)到这个集合图像时从文件加载。
您可以使用RasterCodecs.WriteMarkers方法将标记直接保存到一个现有的文件。
使用Leadtools;
使用Leadtools.Codecs;
使用Leadtools.ImageProcessing;
使用Leadtools.ImageProcessing.Core;
使用Leadtools.ImageProcessing.Color;
使用Leadtools.Dicom;
使用Leadtools.Drawing;
使用Leadtools.Controls;
使用Leadtools.Svg;
私人无效DisplayComment (RasterCommentMetadata评论)
{
开关(comment.DataType)
{
情况下RasterCommentMetadataDataType.Ascii:
MessageBox.Show (“类型”的评论+ + comment.Type.ToString ()“=”+ comment.ToAscii ());
打破;
}
}
公共无效CommentsExample ()
{
RasterCodecs编解码器=新RasterCodecs ();
RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,“IMAGE1.CMP”));
/ / Ascii
RasterCommentMetadata commentDataAscii =新RasterCommentMetadata ();
/ /设置艺术家发表评论
commentDataAscii。类型= RasterCommentMetadataType.Artist;
commentDataAscii.FromAscii (“测试字符串”);
image.Comments.Add (commentDataAscii);
codecs.Options.Save。评论=真正的;
编解码器。保存(形象,Path.Combine (LEAD_VARS.ImagesDir“IMAGE1_COMMENTS.TIF”),RasterImageFormat。Tif, 0);
/ /加载评论的照片
RasterCommentMetadata评论= codecs.ReadComment (Path.Combine (LEAD_VARS.ImagesDir,“IMAGE1_COMMENTS.TIF”),1,RasterCommentMetadataType.Artist);
DisplayComment(评论);
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
私人子DisplayComment (按值传递评论作为RasterCommentMetadata)
选择情况下comment.DataType
情况下RasterCommentMetadataDataType.Ascii
MessageBox.Show (“类型”的评论& & comment.Type.ToString ()“=”& comment.ToAscii ())
结束选择
结束子
公共子CommentsExample ()
昏暗的编解码器作为RasterCodecs =新RasterCodecs ()
昏暗的图像作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“IMAGE1.CMP”))
“Ascii
昏暗的commentDataAscii作为RasterCommentMetadata =新RasterCommentMetadata ()
“艺术家的评论
commentDataAscii。类型= RasterCommentMetadataType.Artist
commentDataAscii.FromAscii (“测试字符串”)
image.Comments.Add (commentDataAscii)
codecs.Options.Save。评论=真正的
编解码器。保存(形象,Path.Combine (LEAD_VARS.ImagesDir“IMAGE1_COMMENTS.TIF”),RasterImageFormat。Tif, 0)
加载评论的照片
昏暗的评论作为RasterCommentMetadata = codecs.ReadComment (Path.Combine (LEAD_VARS.ImagesDir“IMAGE1_COMMENTS.TIF”),1
RasterCommentMetadataType.Artist)
DisplayComment(评论)
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点
联系我们请填写这张表格,我们将通过电子邮件联系你。