文件名称:tuyasrc
-
所属分类:
- 标签属性:
- 上传时间:2013-06-03
-
文件大小:35.79kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
private Size DefaultPicSize //储存原始画布大小,用来新建文件时使用
private bool bReSize //是否改变画布大小
private DrawTools dt //绘图工具类实例
private Color foreColor = Color.Black //绘图工具线条颜色
private string sFileName //打开的文件名
private string sType //绘图工具样式 ReSize = false 大小改变结束
调节大小可能造成画板大小超过屏幕区域,所以事先要设置autoScroll为true.
但是滚动条的出现反而增加了我们的难度,因为滚动条上下移动并不会自动帮我们调整图像的坐标。
这是因为GDI绘图的坐标系不只一个,好像有三个,没有仔细了解,一个是屏幕坐标,一个是客户区坐标,还个是文档坐标。滚动条的上下移动改变的是文档的坐标,但是客户区坐标不变,而location属性就属于客户区坐标,所以我们直接计算会出现错误,这时我们就需要知道文档坐标与客户区坐标的偏移量,这就是AutoScrollPostion可以提供的。 -Graffiti game download C# source code, it simply is drawing program. Part Notes:
private Size DefaultPicSize // save the original size of the canvas to create a new file using
private bool bReSize // whether to change the canvas size
private DrawTools dt // drawing tools class instance
private Color foreColor = Color.Black // line color drawing tool
private string sFileName // open the file name
private string sType // Drawing Tools Styles
private bool bReSize //是否改变画布大小
private DrawTools dt //绘图工具类实例
private Color foreColor = Color.Black //绘图工具线条颜色
private string sFileName //打开的文件名
private string sType //绘图工具样式 ReSize = false 大小改变结束
调节大小可能造成画板大小超过屏幕区域,所以事先要设置autoScroll为true.
但是滚动条的出现反而增加了我们的难度,因为滚动条上下移动并不会自动帮我们调整图像的坐标。
这是因为GDI绘图的坐标系不只一个,好像有三个,没有仔细了解,一个是屏幕坐标,一个是客户区坐标,还个是文档坐标。滚动条的上下移动改变的是文档的坐标,但是客户区坐标不变,而location属性就属于客户区坐标,所以我们直接计算会出现错误,这时我们就需要知道文档坐标与客户区坐标的偏移量,这就是AutoScrollPostion可以提供的。 -Graffiti game download C# source code, it simply is drawing program. Part Notes:
private Size DefaultPicSize // save the original size of the canvas to create a new file using
private bool bReSize // whether to change the canvas size
private DrawTools dt // drawing tools class instance
private Color foreColor = Color.Black // line color drawing tool
private string sFileName // open the file name
private string sType // Drawing Tools Styles
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tuyasrc/bin/Debug/img/Circle.gif
tuyasrc/bin/Debug/img/eraser.png
tuyasrc/bin/Debug/img/FillCircle.GIF
tuyasrc/bin/Debug/img/Fillrect.GIF
tuyasrc/bin/Debug/img/line.gif
tuyasrc/bin/Debug/img/pb.cur
tuyasrc/bin/Debug/img/Pencil.gif
tuyasrc/bin/Debug/img/rect.gif
tuyasrc/bin/Debug/绘图程序.vshost.exe
tuyasrc/bin/Debug/绘图程序.vshost.exe.manifest
tuyasrc/ClassDiagram1.cd
tuyasrc/DrawTools.cs
tuyasrc/Form1.cs
tuyasrc/Form1.Designer.cs
tuyasrc/Form1.resx
tuyasrc/obj/Debug/DesignTimeResolveAssemblyReferences.cache
tuyasrc/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
tuyasrc/obj/Debug/ResolveAssemblyReference.cache
tuyasrc/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
tuyasrc/obj/Debug/涂鸦游戏软件.csproj.FileListAbsolute.txt
tuyasrc/obj/Debug/绘图程序.csproj.FileListAbsolute.txt
tuyasrc/obj/Debug/绘图程序.csproj.GenerateResource.Cache
tuyasrc/obj/绘图程序.csproj.FileList.txt
tuyasrc/Program.cs
tuyasrc/Properties/AssemblyInfo.cs
tuyasrc/Properties/Resources.Designer.cs
tuyasrc/Properties/Resources.resx
tuyasrc/Properties/Settings.Designer.cs
tuyasrc/Properties/Settings.settings
tuyasrc/涂鸦游戏.csproj
tuyasrc/涂鸦游戏.sln
tuyasrc/涂鸦游戏.suo
tuyasrc/bin/Debug/img
tuyasrc/obj/Debug/Refactor
tuyasrc/obj/Debug/TempPE
tuyasrc/bin/Debug
tuyasrc/bin/Release
tuyasrc/obj/Debug
tuyasrc/bin
tuyasrc/obj
tuyasrc/Properties
tuyasrc
tuyasrc/bin/Debug/img/eraser.png
tuyasrc/bin/Debug/img/FillCircle.GIF
tuyasrc/bin/Debug/img/Fillrect.GIF
tuyasrc/bin/Debug/img/line.gif
tuyasrc/bin/Debug/img/pb.cur
tuyasrc/bin/Debug/img/Pencil.gif
tuyasrc/bin/Debug/img/rect.gif
tuyasrc/bin/Debug/绘图程序.vshost.exe
tuyasrc/bin/Debug/绘图程序.vshost.exe.manifest
tuyasrc/ClassDiagram1.cd
tuyasrc/DrawTools.cs
tuyasrc/Form1.cs
tuyasrc/Form1.Designer.cs
tuyasrc/Form1.resx
tuyasrc/obj/Debug/DesignTimeResolveAssemblyReferences.cache
tuyasrc/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
tuyasrc/obj/Debug/ResolveAssemblyReference.cache
tuyasrc/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
tuyasrc/obj/Debug/涂鸦游戏软件.csproj.FileListAbsolute.txt
tuyasrc/obj/Debug/绘图程序.csproj.FileListAbsolute.txt
tuyasrc/obj/Debug/绘图程序.csproj.GenerateResource.Cache
tuyasrc/obj/绘图程序.csproj.FileList.txt
tuyasrc/Program.cs
tuyasrc/Properties/AssemblyInfo.cs
tuyasrc/Properties/Resources.Designer.cs
tuyasrc/Properties/Resources.resx
tuyasrc/Properties/Settings.Designer.cs
tuyasrc/Properties/Settings.settings
tuyasrc/涂鸦游戏.csproj
tuyasrc/涂鸦游戏.sln
tuyasrc/涂鸦游戏.suo
tuyasrc/bin/Debug/img
tuyasrc/obj/Debug/Refactor
tuyasrc/obj/Debug/TempPE
tuyasrc/bin/Debug
tuyasrc/bin/Release
tuyasrc/obj/Debug
tuyasrc/bin
tuyasrc/obj
tuyasrc/Properties
tuyasrc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.