資源簡介
比較精細的C#版畫圖+注釋功能,畫圖和注釋都是一個層,中間可以任意拖拉修改

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?GraphicsMark;
namespace?TestForm
{
????public?partial?class?FormTest?:?Form
????{
????????FunctionID?mFunc;
????????GraphicMark?mark;
????????public?FormTest()
????????{
????????????InitializeComponent();
????????????//
????????????mark?=?new?GraphicMark();
????????????mark.Parent?=?this;
????????????mark.Location?=?new?Point(2?2);
????????????mark.Size?=?new?Size(300?300);
????????????Image?img?=?TestForm.Properties.Resources.back;//?Image.FromFile(“Image.back.PNG“);
????????????mark.SetImage(img);
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????mark.Func?=?FunctionID.None;
????????????mark.ClearGraphic();
????????????//
????????}
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????mFunc?=?FunctionID.ArrowLineComment;
????????????mark.Func?=?mFunc;
????????}
????????private?void?button3_Click(object?sender?EventArgs?e)
????????{
????????????mFunc?=?FunctionID.EllipseComment;
????????????mark.Func?=?mFunc;
????????}
????????private?void?button4_Click(object?sender?EventArgs?e)
????????{
????????????mFunc?=?FunctionID.EllipseTextComment;
????????????mark.Func?=?mFunc;
????????}
????????private?void?button5_Click(object?sender?EventArgs?e)
????????{
????????????mFunc?=?FunctionID.RectangleCommemt;
????????????mark.Func?=?mFunc;
????????}
????????private?void?button6_Click(object?sender?EventArgs?e)
????????{
????????????mFunc?=?FunctionID.TextArrowComment;
????????????mark.Func?=?mFunc;
????????}
????????private?void?button7_Click(object?sender?EventArgs?e)
????????{
????????????mFunc?=?FunctionID.TextComment;
????????????mark.Func?=?mFunc;
????????}
????????private?void?button8_Click(object?sender?EventArgs?e)
????????{
????????????if?(saveFileDialog1.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????string?sfile?=?saveFileDialog1.FileName;
????????????????Image?img?=?mark.SaveToImage();
????????????????if?(img?!=?null)
????????????????{
????????????????????img.Save(sfile?System.Drawing.Imaging.ImageFormat.Jpeg);
????????????????}
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????134656??2011-08-18?16:27??GraphicsMark\bin\Debug\TestForm.exe
?????文件?????226816??2011-08-18?16:27??GraphicsMark\bin\Debug\TestForm.pdb
?????文件??????11608??2011-08-18?14:48??GraphicsMark\bin\Debug\TestForm.vshost.exe
?????文件????????490??2010-03-17?22:39??GraphicsMark\bin\Debug\TestForm.vshost.exe.manifest
?????文件???????2397??2011-08-17?21:28??GraphicsMark\FormTest.cs
?????文件???????6823??2011-08-17?13:50??GraphicsMark\FormTest.Designer.cs
?????文件???????6017??2011-08-17?13:50??GraphicsMark\FormTest.resx
?????文件???????2722??2011-08-15?16:59??GraphicsMark\GraphicMark.cs
?????文件???????1755??2011-08-15?16:12??GraphicsMark\GraphicMark.Designer.cs
?????文件???????5814??2011-08-15?16:12??GraphicsMark\GraphicMark.resx
?????文件?????213322??2011-08-17?12:32??GraphicsMark\GraphicsMarkCode.cs
?????文件??????22565??2011-08-15?16:47??GraphicsMark\Image\back.PNG
?????文件??????10419??2011-08-15?16:12??GraphicsMark\ImageFunction.cs
?????文件??????25252??2011-08-15?17:10??GraphicsMark\MarkImage.cs
?????文件???????6064??2011-08-18?16:27??GraphicsMark\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????440??2011-08-18?16:27??GraphicsMark\obj\Debug\ResGen.read.1.tlog
?????文件????????804??2011-08-18?16:27??GraphicsMark\obj\Debug\ResGen.write.1.tlog
?????文件???????4608??2011-08-15?23:22??GraphicsMark\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????1538??2011-08-18?16:27??GraphicsMark\obj\Debug\TestForm.csproj.FileListAbsolute.txt
?????文件????????847??2011-07-28?16:06??GraphicsMark\obj\Debug\TestForm.csproj.GenerateResource.Cache
?????文件?????134656??2011-08-18?16:27??GraphicsMark\obj\Debug\TestForm.exe
?????文件????????180??2011-07-28?16:11??GraphicsMark\obj\Debug\TestForm.Form1.resources
?????文件????????180??2011-08-18?16:27??GraphicsMark\obj\Debug\TestForm.FormTest.resources
?????文件????????180??2011-08-18?16:27??GraphicsMark\obj\Debug\TestForm.GraphicMark.resources
?????文件?????226816??2011-08-18?16:27??GraphicsMark\obj\Debug\TestForm.pdb
?????文件??????27055??2011-08-18?16:27??GraphicsMark\obj\Debug\TestForm.Properties.Resources.resources
?????文件???????4608??2011-08-15?17:08??GraphicsMark\obj\Release\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????980??2011-08-15?17:15??GraphicsMark\obj\Release\TestForm.csproj.FileListAbsolute.txt
?????文件???????1006??2011-08-15?17:19??GraphicsMark\obj\Release\TestForm.csproj.GenerateResource.Cache
?????文件?????126976??2011-08-15?17:19??GraphicsMark\obj\Release\TestForm.exe
............此處省略28個文件信息
評論
共有 條評論