• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-27
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;

namespace BuildingBlock
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            openFileDialog1.Filter = “*.jpg*.jpeg*.bmp|*.jpg;*.jpeg;*.bmp“;
            openFileDialog1.ShowDialog();
            Image myImage = System.Drawing.Image.FromFile(openFileDialog1.FileName);
            this.BackgroundImage = myImage;
        }

        private void button2_Click(object sender EventArgs e)
        {
            Graphics myGraphics = this.CreateGraphics();  //创建窗体的Graphics类
            Bitmap myBitmap = new Bitmap(this.BackgroundImage);  //实例化Bitmap类
            int myWidth myHeight i j iAvg iPixel; //定

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-22 23:11  BuildingBlock\
     文件         929  2013-06-05 22:30  BuildingBlock.sln
     文件       25600  2010-11-04 02:21  BuildingBlock.suo
     目录           0  2011-12-22 23:11  BuildingBlock\bin\
     目录           0  2013-06-05 22:31  BuildingBlock\bin\Debug\
     文件        9728  2013-06-05 22:31  BuildingBlock\bin\Debug\BuildingBlock.exe
     文件       24064  2013-06-05 22:31  BuildingBlock\bin\Debug\BuildingBlock.pdb
     文件        4030  2013-06-05 22:30  BuildingBlock\BuildingBlock.csproj
     文件        2676  2010-07-13 21:17  BuildingBlock\Frm_Main.cs
     文件        3096  2010-07-13 21:17  BuildingBlock\Frm_Main.designer.cs
     文件        6017  2010-07-13 21:17  BuildingBlock\Frm_Main.resx
     目录           0  2011-12-22 23:11  BuildingBlock\obj\
     目录           0  2013-06-05 22:31  BuildingBlock\obj\Debug\
     文件        3887  2013-06-05 22:31  BuildingBlock\obj\Debug\BuildingBlock.csproj.FileListAbsolute.txt
     文件         850  2013-06-05 22:31  BuildingBlock\obj\Debug\BuildingBlock.csproj.GenerateResource.Cache
     文件        1757  2013-06-05 22:31  BuildingBlock\obj\Debug\BuildingBlock.csprojResolveAssemblyReference.cache
     文件        9728  2013-06-05 22:31  BuildingBlock\obj\Debug\BuildingBlock.exe
     文件         180  2013-06-05 22:31  BuildingBlock\obj\Debug\BuildingBlock.Frm_Main.resources
     文件       24064  2013-06-05 22:31  BuildingBlock\obj\Debug\BuildingBlock.pdb
     文件         180  2013-06-05 22:31  BuildingBlock\obj\Debug\BuildingBlock.Properties.Resources.resources
     文件        7170  2013-06-05 22:30  BuildingBlock\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2011-12-22 23:11  BuildingBlock\obj\Debug\Refactor\
     目录           0  2013-06-05 22:30  BuildingBlock\obj\Debug\TempPE\
     文件        4608  2013-06-05 22:30  BuildingBlock\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         497  2010-07-08 22:49  BuildingBlock\Program.cs
     目录           0  2011-12-22 23:11  BuildingBlock\Properties\
     文件        1358  2010-07-08 22:48  BuildingBlock\Properties\AssemblyInfo.cs
     文件        2866  2013-06-05 22:30  BuildingBlock\Properties\Resources.Designer.cs
     文件        5612  2010-07-08 22:48  BuildingBlock\Properties\Resources.resx
     文件        1113  2013-06-05 22:30  BuildingBlock\Properties\Settings.Designer.cs
     文件         249  2010-07-08 22:48  BuildingBlock\Properties\Settings.settings
............此处省略0个文件信息

评论

共有 条评论