绘制和编辑矢量图
- 格式:ppt
- 大小:174.00 KB
- 文档页数:17


1、 新建一个工作表格Worksheet3、用Plot →Vector XY AMYX3、 如果图像超过了坐标轴,则用= You might notice at this point that the vectors extend outside the axes (layer frame). To limit their display to the layer frame only, enable the Clip Data to Frame check box on the Display tab at the Layer level in Plot Details. Select Format: Layer => Layer property →Clip Data to Frame附:直角坐标与矢量的转换关系Tutorial:Vector GraphFrom Howto WikiJump to: navigation, searchContents [hide]1 Summary2 What you will learn3 Steps3.1 Vector XYAM3.2 Vector XYXYSummaryA vector plot is a multidimensional graph used in industries such as meteorology, aviation, research, and construction that illustrate flow patterns (e.g. of wind, water, magnetic fields, etc.). Both direction and magnitude are represented in a vector graph. Origin includes two types of vector plots:Vector XYAM - takes a starting XY location for the vector tail (by default), an angle and a magnitude.Vector XYXY - takes two XY positions and connects them with a vector.What you will learnTwo data organizing mode to plot a vector graph.Use Plot Setup to assign plot dataStepsThis tutorial is associated with the sample project: \Samples\Samples.opj.To create a vector plot, you need four data columns, and organize your data into two modes:Vector XY AMXY AM means X, Y, Angle and Magnitude, respectively. Vectors will start from point (X, Y), and rotate an angle you specified. The following example uses XYAM data mode to create a vector graph.Browse the folder Graphing: Vector: 2D Vector in the Project Explorer. Active the data worksheet Book8E. Without highlighting any columns, select Plot: Specialized: Vector XY AM to open the Plot Setup dialog. And assign column A, B, D, C to X, Y, A, M as below, then click OK to plot the graph.Select Format:Plot to go to the plot level of the Plot Details dialog. Go to the V ector tab and change the Magnitude Multiplier in Vector Data group to 75. Click Ok button to close Plot Details dialog.Double-click X or Y axis to open the Axis dialog. Active the Title & Format tab, and check/enable the Show Axis & Ticks option for the Right axis. And set the Major Ticks and Minor Ticks to Out. Show the Top axis either in this tab.Go to Tick Labels tab, and check the Show Major Labels box for both Right and Top axis. Vector XYXYAnother data organizing mode is XYXY, where the first X, Y is the vector starting point, while the last X, Y is the ending point.To create such vector graph, active the Graphing: V ector: 2D Vector folder in the OPJ, highlight all of the four data columns of Book9E, and select Plot: Specialized: Vector XYXY from menu. Delete the axis titles if necessary.Retrieved from "/~originla/howto/index.php?title=Tutorial:Vector_Graph"。
C#绘制矢量图(Metafile,WMF,EMF)主要的功能就是使用C#画矢量图,然后导出到Word、Excel、Powerpoint中,并且能够再次被编辑。
以下是解决过程:首先应该确定在Office文档中可编辑图形使用的格式;学习了相关资料,了解到Office文档主要支持三种矢量图的格式:1、VML图形,2、WMF文件格式,3、EMF文件格式。
由于VML图开一般使用HTML语言进行描述,不便于进行操作,因此决定采用WMF和EMF 文件格式。
接下来的工作就是要让C#根据提供的数据生成WMF或EMF格式的矢量图形;学习了C#提供的GDI+绘图类库,GDI+可以绘制矢量图形,代码示例如下:/// <summary>/// 导出为 Emf 或 Wmf 文件/// </summary>/// <param name="filePath">文件路径</param>/// <returns>是否成功</returns>private bool Export(string filePath){try{Bitmap bmp = new Bitmap(220,220);Graphics gs = Graphics.FromImage(bmp);Metafile mf = new Metafile(filePath,gs.GetHdc());Graphics g = Graphics.FromImage(mf);Draw(g);g.Save();g.Dispose();mf.Dispose();return true;}catch{return false;}}/// <summary>/// 绘制图形/// </summary>/// <param name="g">用于绘图的Graphics对象</param> private void Draw(Graphics g){HatchBrush hb = new HatchBrush(HatchStyle.LightUpwardDiagonal, Color.Black, Color.White);g.FillEllipse(Brushes.Gray,10f,10f,200,200);g.DrawEllipse(new Pen(Color.Black,1f),10f,10f,200,200);g.FillEllipse(hb,30f,95f,30,30);g.DrawEllipse(new Pen(Color.Black,1f),30f,95f,30,30);g.FillEllipse(hb,160f,95f,30,30);g.DrawEllipse(new Pen(Color.Black,1f),160f,95f,30,30);g.FillEllipse(hb,95f,30f,30,30);g.DrawEllipse(new Pen(Color.Black,1f),95f,30f,30,30);g.FillEllipse(hb,95f,160f,30,30);g.DrawEllipse(new Pen(Color.Black,1f),95f,160f,30,30);g.FillEllipse(Brushes.Blue,60f,60f,100,100);g.DrawEllipse(new Pen(Color.Black,1f),60f,60f,100,100);g.FillEllipse(Brushes.BlanchedAlmond,95f,95f,30,30);g.DrawEllipse(new Pen(Color.Black,1f),95f,95f,30,30);g.DrawRectangle(newPen(System.Drawing.Brushes.Blue,0.1f),6,6,208,208);g.DrawLine(new Pen(Color.Black,0.1f),110f,110f,220f,25f);g.DrawString("剖面图",new Font("宋体",9f),Brushes.Green,220f,20f);}产生的图形如下:放大后效果:。
矢量图像绘制技巧与实例分享PhotoShop 是一款功能强大的图像处理软件,不仅可以处理位图图像,还可以用来绘制矢量图像。
矢量图像是由几何图形和数学公式构成的图像,无论放大还是缩小,都不会发生失真。
本文将分享一些矢量图像绘制的技巧和实例,让您能更好地运用 PhotoShop 软件。
一、基本工具的使用PhotoShop 提供了丰富的矢量绘制工具,包括直线工具、曲线工具、椭圆工具等。
在绘制矢量图像时,我们可以先选择需要的工具,然后在画布上拖动鼠标进行绘制。
对于直线和椭圆等工具,您可以按住"Shift" 键来绘制完美的直线或圆形。
二、锚点和路径的编辑矢量图像由一些点和路径构成。
在 PhotoShop 中,我们可以使用直接选择工具或路径选择工具来编辑这些点和路径。
通过拖动锚点,您可以改变路径的形状。
通过添加或删除锚点,您可以调整路径的长度和角度。
您还可以使用"转换"工具来调整整个图像的大小和形状。
三、形状工具的运用形状工具是绘制矢量图像的利器。
在 PhotoShop 中,我们可以使用矩形工具、多边形工具、箭头工具等来绘制各种形状。
在使用这些工具时,您可以按住 "Shift" 键来绘制等边形,按住 "Alt" 键绘制自定义形状。
四、渐变和填充的应用渐变和填充可以为矢量图像增加更多的效果。
在 PhotoShop 中,您可以使用渐变工具来创建渐变效果,选择不同的渐变类型和颜色,调整渐变的角度和不透明度。
填充工具可以用来填充形状或路径,您可以选择颜色、图案或渐变作为填充样式。
五、图层样式和效果的加入图层样式和效果可以使矢量图像更加生动。
在 PhotoShop 中,您可以通过图层面板的样式选项来为图像添加阴影、描边、发光效果等。
您还可以使用滤镜和调整图层选项来进一步增加效果,如模糊、锐化、变形等。
实例分享:接下来,我们将分享两个关于矢量图像的实例,帮助您更好地理解和应用上述技巧。