91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.1M
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-16
  • 語言: C#
  • 標簽: 其他??

資源簡介

C#GDI繪圖_設置筆刷.rar

資源截圖

代碼片段和文件信息

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

namespace?GDIPBrushes
{
????public?partial?class?Form1?:?Form
????{
????????//聲明畫圖必須的變量---背景刷
????????private?Brush?backgroundBrush;

????????public?Form1()
????????{
????????????InitializeComponent();


????????????//在構(gòu)造函數(shù)中添加初始活動代碼

????????????//將Form1的背景設置成不透明的
????????????this.Setstyle(Controlstyles.Opaque?true);

????????????//從可執(zhí)行文件的資源分支中加載要用于背景的圖像
????????????Image?backgroundImage?=?Image.FromFile(“colorbars.jpg“);//?new?Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(“colorbars.jpg“));
????????????backgroundBrush?=?new?TextureBrush(backgroundImage);

????????}

????????protected?override?void?OnPaint(PaintEventArgs?e)
????????{
????????????Graphics?g?=?e.Graphics;


????????????//定義在呈現(xiàn)圖畫的時候的畫質(zhì)要求--消除鋸齒,高品質(zhì)的
????????????g.SmoothingMode?=?System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
????????????//用粗畫筆填充背景
????????????//然后應用白色涂料
????????????g.FillRectangle(backgroundBrush?ClientRectangle);
????????????g.FillRectangle(new?SolidBrush(Color.FromArgb(180?Color.White))?ClientRectangle);

????????????//添加一個紅色長方形和一個與之重疊的黃色長方形
????????????g.FillRectangle(new?SolidBrush(Color.Red)?20?20?50?50);
????????????g.FillRectangle(new?SolidBrush(Color.FromArgb(180?Color.Yellow))?40?40?50?50);


????????????//添加一個充滿半透明陰影圖案的圓圈
????????????HatchBrush?hb?=?new?HatchBrush(Hatchstyle.DottedGrid?Color.Green?Color.FromArgb(100?Color.Yellow));
????????????g.FillEllipse(hb?250?10?100?100);

????????????//現(xiàn)在創(chuàng)建一個用漸變畫筆填充的長方形
????????????Rectangle?r?=?new?Rectangle(300?250?100?100);
????????????LinearGradientBrush?lb?=?new?LinearGradientBrush(r?Color.Red?Color.Yellow?LinearGradientMode.BackwardDiagonal);
????????????g.FillRectangle(lb?r);


????????????//現(xiàn)在添加一個用線條漸變畫筆繪制的圖形
????????????GraphicsPath?path?=?new?GraphicsPath(new?Point[]{
????????????????????????????????????????????????????????????new?Point(40140)
????????????????????????????????????????????????????????????new?Point(275200)
????????????????????????????????????????????????????????????new?Point(105225)
????????????????????????????????????????????????????????????new?Point(190300)
????????????????????????????????????????????????????????????new?Point(50350)
????????????????????????????????????????????????????????????new?Point(20180)
????????????????????????????????????????????????????????????}
??????????????????????????????????????????????????new?byte[]{
????????????????????????????????????????????????????????????(byte)PathPointType.Start
????????????????????????????????????????????????????????????(byte)PathPointType.Line
????????????????????????????????????????????????????????????(byte)PathPointType.Line
???????????????????????????????????????????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????6056??2009-02-14?11:50??C#GDI繪圖_設置筆刷\Backup\Form1.cs

?????文件???????2860??2009-02-14?10:46??C#GDI繪圖_設置筆刷\Backup\Form1.Designer.cs

?????文件???????6014??2009-02-14?10:46??C#GDI繪圖_設置筆刷\Backup\Form1.resx

?????文件???????4632??2009-02-14?11:13??C#GDI繪圖_設置筆刷\Backup\GDIPBrushes.csproj

?????文件????????168??2009-02-14?11:41??C#GDI繪圖_設置筆刷\Backup\GDIPBrushes.csproj.user

?????文件????????911??2009-02-14?08:58??C#GDI繪圖_設置筆刷\Backup\GDIPBrushes.sln

????..A..H.?????17920??2009-02-19?16:42??C#GDI繪圖_設置筆刷\Backup\GDIPBrushes.v12.suo

?????文件????????853??2009-02-14?11:30??C#GDI繪圖_設置筆刷\Backup\GradientBrushForm.cs

?????文件???????2092??2009-02-14?11:30??C#GDI繪圖_設置筆刷\Backup\GradientBrushForm.Designer.cs

?????文件???????5814??2009-02-14?11:30??C#GDI繪圖_設置筆刷\Backup\GradientBrushForm.resx

?????文件????????492??2009-02-14?11:33??C#GDI繪圖_設置筆刷\Backup\Program.cs

?????文件???????1378??2009-02-14?08:58??C#GDI繪圖_設置筆刷\Backup\Properties\AssemblyInfo.cs

?????文件???????3103??2009-02-14?09:19??C#GDI繪圖_設置筆刷\Backup\Properties\Resources.Designer.cs

?????文件???????6205??2009-02-14?09:19??C#GDI繪圖_設置筆刷\Backup\Properties\Resources.resx

?????文件???????1096??2009-02-14?08:58??C#GDI繪圖_設置筆刷\Backup\Properties\Settings.Designer.cs

?????文件????????249??2009-02-14?08:58??C#GDI繪圖_設置筆刷\Backup\Properties\Settings.settings

?????文件????????712??2009-02-14?11:40??C#GDI繪圖_設置筆刷\Backup\Resources\colorbars.jpg

?????文件????????690??2009-02-14?11:00??C#GDI繪圖_設置筆刷\Backup\SolidBrushForm.cs

?????文件???????2079??2009-02-14?10:55??C#GDI繪圖_設置筆刷\Backup\SolidBrushForm.Designer.cs

?????文件???????5814??2009-02-14?10:55??C#GDI繪圖_設置筆刷\Backup\SolidBrushForm.resx

?????文件????????797??2009-02-14?11:41??C#GDI繪圖_設置筆刷\bin\Debug\colorbars.jpg

?????文件??????14336??2019-11-12?13:44??C#GDI繪圖_設置筆刷\bin\Debug\GDIPBrushes.exe

?????文件??????42496??2019-11-12?13:44??C#GDI繪圖_設置筆刷\bin\Debug\GDIPBrushes.pdb

?????文件??????22704??2019-11-12?13:44??C#GDI繪圖_設置筆刷\bin\Debug\GDIPBrushes.vshost.exe

?????文件????????490??2013-03-18?17:00??C#GDI繪圖_設置筆刷\bin\Debug\GDIPBrushes.vshost.exe.manifest

?????文件???????6056??2019-11-12?13:44??C#GDI繪圖_設置筆刷\Form1.cs

?????文件???????3733??2019-11-12?13:44??C#GDI繪圖_設置筆刷\Form1.Designer.cs

?????文件???????6014??2019-11-12?13:44??C#GDI繪圖_設置筆刷\Form1.resx

?????文件???????6098??2019-11-12?13:44??C#GDI繪圖_設置筆刷\GDIPBrushes.csproj

?????文件????????498??2019-11-12?13:44??C#GDI繪圖_設置筆刷\GDIPBrushes.csproj.user

............此處省略45個文件信息

評論

共有 條評論