• 大小: 0.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签:

资源简介

C# 遮罩贴图 示例源码

资源截图

代码片段和文件信息

#region [ References ]

using System;
using System.Drawing;
using System.Drawing.Imaging; 
using System.Collections.Generic;
using System.Text;

#endregion

namespace SampleProject
{
public class ImageProcessingLib
{
#region [ Fields ]

Bitmap bitmap;

#endregion

#region [ Functions ]

/// 
/// This function used to perform Dilation on Image.
/// 

/// 
/// 
/// 
public Bitmap Dilate(Bitmap SrcImage)
{
// Create Destination bitmap.
bitmap = new Bitmap(SrcImage.Width SrcImage.Height);

// Take source bitmap data.
BitmapData SrcData = SrcImage.LockBits(new Rectangle(0 0
 SrcImage.Width SrcImage.Height) ImageLockMode.ReadOnly
 PixelForm

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         928  2009-03-06 11:26  SampleProject\SampleProject.sln
     文件       17408  2009-03-06 14:03  SampleProject\SampleProject.suo
     目录           0  2009-03-09 15:52  SampleProject\SampleProject\
     目录           0  2009-03-06 11:26  SampleProject\SampleProject\bin\
     目录           0  2009-03-06 11:34  SampleProject\SampleProject\bin\Debug\
     文件       28672  2009-03-09 15:52  SampleProject\SampleProject\bin\Debug\SampleProject.exe
     文件       36352  2009-03-09 15:52  SampleProject\SampleProject\bin\Debug\SampleProject.pdb
     文件        5632  2005-09-23 06:56  SampleProject\SampleProject\bin\Debug\SampleProject.vshost.exe
     文件        4959  2009-03-06 13:28  SampleProject\SampleProject\ImageProcessingLib.cs
     文件        6267  2009-03-09 15:52  SampleProject\SampleProject\MainForm.cs
     文件       10145  2009-03-06 13:52  SampleProject\SampleProject\MainForm.Designer.cs
     文件        6412  2009-03-06 13:52  SampleProject\SampleProject\MainForm.resx
     目录           0  2009-03-06 11:33  SampleProject\SampleProject\obj\
     目录           0  2009-03-09 15:52  SampleProject\SampleProject\obj\Debug\
     目录           0  2009-03-06 11:26  SampleProject\SampleProject\obj\Debug\Refactor\
     文件         845  2009-03-06 14:01  SampleProject\SampleProject\obj\Debug\SampleProject.csproj.GenerateResource.Cache
     文件       28672  2009-03-09 15:52  SampleProject\SampleProject\obj\Debug\SampleProject.exe
     文件         180  2009-03-06 14:01  SampleProject\SampleProject\obj\Debug\SampleProject.MainForm.resources
     文件       36352  2009-03-09 15:52  SampleProject\SampleProject\obj\Debug\SampleProject.pdb
     文件         180  2009-03-06 11:33  SampleProject\SampleProject\obj\Debug\SampleProject.Properties.Resources.resources
     目录           0  2009-03-06 11:26  SampleProject\SampleProject\obj\Debug\TempPE\
     文件        1081  2009-03-09 15:52  SampleProject\SampleProject\obj\SampleProject.csproj.FileListAbsolute.txt
     文件         405  2009-03-06 11:26  SampleProject\SampleProject\Program.cs
     目录           0  2009-03-06 11:26  SampleProject\SampleProject\Properties\
     文件        1298  2009-03-06 11:26  SampleProject\SampleProject\Properties\AssemblyInfo.cs
     文件        2507  2009-03-06 11:26  SampleProject\SampleProject\Properties\Resources.Designer.cs
     文件        5612  2009-03-06 11:25  SampleProject\SampleProject\Properties\Resources.resx
     文件        1020  2009-03-06 11:26  SampleProject\SampleProject\Properties\Settings.Designer.cs
     文件         249  2009-03-06 11:26  SampleProject\SampleProject\Properties\Settings.settings
     文件        3346  2009-03-06 12:13  SampleProject\SampleProject\SampleProject.csproj

评论

共有 条评论

相关资源