• 大小: 1.53MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-24
  • 语言: C#
  • 标签: 高级绘图  c#  工具类  

资源简介

c#该机绘图开发,波形控件,带源码,高端,比较难,需要认真学习才能看懂

资源截图

代码片段和文件信息

using System;
using System.Drawing;

namespace GDIDB
{
/// 
/// Class to implement Double Buffering 
/// NT Almond 
/// 24 July 2003
/// 

/// 
public class DBGraphics
{
private Graphics graphics;
private Bitmap memoryBitmap;
private int width;
private int height;

/// 
/// Default constructor
/// 

public DBGraphics()
{
width = 0;
height = 0;
}

/// 
/// Creates double buffer object
/// 

/// Window forms Graphics object
/// width of paint area
/// height of paint area
/// true/false if double buffer is created
public bool CreateDoubleBuffer(Graphics g int width int height)
{

if (memoryBitmap != null)
{
memoryBitmap.Dispose();
memoryBitmap = null;
}

if (graphics != null)
{
graphics.Dispose();
graphics = null;
}

if (width <= 0 || height <= 0)
return false;


if ((width != this.width) || (height != this.height))
{
this.width = width;
this.height = height;

memoryBitmap = new Bitmap(width height);
graphics = Graphics.FromImage(memoryBitmap);
}

return true;
}


/// 
/// Renders the double buffer to the screen
/// 

/// Window forms Graphics object
public void Render(Graphics g)
{
if (memoryBitmap != null)
g.DrawImage(memoryBitmap new Rectangle(00 width height)00 width height GraphicsUnit.Pixel);
}

/// 
/// 
/// 

/// true if double buffering can be achieved
public bool CanDoubleBuffer()
{
return graphics != null;
}

/// 
/// Accessor for memory graphics object
/// 

public Graphics g 
{
get 

return graphics; 
}
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     32256  2017-07-21 14:58  高级绘图c#波形波形控件\ClassLibDemo\.vs\ClassLibDemo\v15\.suo

     文件       3520  2006-06-25 15:31  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\ClassLibDemo.csproj

     文件       2001  2004-12-17 15:44  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\DBGraphics.cs

     文件       6421  2006-06-25 15:29  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Form1.cs

     文件       1365  2006-06-25 15:29  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Form1.Designer.cs

     文件       5814  2006-06-25 15:29  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Form1.resx

     文件        405  2006-06-25 15:20  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Program.cs

     文件       1298  2006-06-25 15:49  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Properties\AssemblyInfo.cs

     文件       2519  2006-06-25 15:20  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Properties\Resources.Designer.cs

     文件       5612  2006-06-25 15:20  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Properties\Resources.resx

     文件       1025  2006-06-25 15:20  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Properties\Settings.Designer.cs

     文件        249  2006-06-25 15:20  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo\Properties\Settings.settings

     文件        929  2006-06-25 15:21  高级绘图c#波形波形控件\ClassLibDemo\Backup\Backup\ClassLibDemo.sln

     文件      21464  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\bin\Debug\ClassLibTest.vshost.exe

     文件        490  2015-10-30 15:19  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\bin\Debug\ClassLibTest.vshost.exe.manifest

     文件       3827  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\ClassLibDemo.csproj

     文件       2001  2004-12-17 15:44  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\DBGraphics.cs

     文件       6421  2006-06-25 15:29  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\Form1.cs

     文件       1365  2006-06-25 15:29  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\Form1.Designer.cs

     文件       5814  2006-06-25 15:29  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\Form1.resx

     文件        377  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\obj\Debug\ClassLibDemo.csproj.FileListAbsolute.txt

     文件        847  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\obj\Debug\ClassLibDemo.csproj.GenerateResource.Cache

     文件        180  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\obj\Debug\ClassLibTest.Form1.resources

     文件        180  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\obj\Debug\ClassLibTest.Properties.Resources.resources

     文件       6142  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        405  2006-06-25 15:20  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\Program.cs

     文件       1298  2006-06-25 15:49  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\Properties\AssemblyInfo.cs

     文件       2864  2017-07-05 10:17  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\Properties\Resources.Designer.cs

     文件       5612  2006-06-25 15:20  高级绘图c#波形波形控件\ClassLibDemo\Backup\ClassLibDemo\Properties\Resources.resx

............此处省略435个文件信息

评论

共有 条评论