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

  • 大小: 21.86MB
    文件類(lèi)型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2023-06-16
  • 語(yǔ)言: C#
  • 標(biāo)簽:

資源簡(jiǎn)介

C#語(yǔ)言,winform。可實(shí)現(xiàn)圖片的自動(dòng)播放,播放效果類(lèi)似于ppt的各種效果,可實(shí)現(xiàn)上一張下一張,左旋右旋,以及放大縮小。

資源截圖

代碼片段和文件信息

using?System;
using?System.Drawing;
using?System.Drawing.Drawing2D;
using?System.Drawing.Imaging;
using?System.Threading;
using?System.Windows.Forms;

namespace?Mengliao.CSharp.A14
{
????#region??動(dòng)畫(huà)類(lèi)型枚舉

????//?本例為了簡(jiǎn)單起見(jiàn)沒(méi)有使用見(jiàn)名知意的名稱,如用于實(shí)際可將這些枚舉成員更名為準(zhǔn)確的英文名稱
????enum?AnimateType
????{
????????Animator01?Animator02?Animator03?Animator04?Animator05
????????Animator06?Animator07?Animator08?Animator09?Animator10
????????Animator11?Animator12?Animator13?Animator14?Animator15
????????Animator16?Animator17?Animator18?Animator19?Animator20
????????Animator21?Animator22?Animator23?Animator24?Animator25
????????Animator26?Animator27?Animator28?Animator29?Animator30
????}

????#endregion

????class?AnimatorImage
????{
????????#region?私有字段

????????//?輸入位圖
????????private?Bitmap?bmp;
????????//?是否已經(jīng)開(kāi)始繪制
????????private?bool?drawStarted?=?false;

????????//?在繪制過(guò)程中是否終止的自動(dòng)復(fù)位信號(hào)量,有信號(hào)則終止
????????private?AutoResetEvent?cancelEvent?=?new?AutoResetEvent(false);

????????//?在繪制過(guò)程中是否暫停的手動(dòng)復(fù)位信號(hào)量,有信號(hào)則暫停
????????private?ManualResetEvent?pauseEvent?=?new?ManualResetEvent(false);

????????//?輸出位圖的DC
????????private?Graphics?dc;

????????#endregion

????????#region?屬性和事件

????????private?Bitmap?outBmp;
????????///?
????????///?輸出位圖。
????????///?

????????public?Bitmap?OutBmp
????????{
????????????get?{?return?outBmp;?}
????????}

????????private?int?delay;
????????///?
????????///?延時(shí)系數(shù)。
????????///?

????????public?int?Delay
????????{
????????????get?{?return?delay;?}
????????????set?{?delay?=?Math.Min(Math.Max(1?value)?100);?}?//?使其介于1到100之間
????????}

????????///?
????????///?重繪事件。
????????///?

????????public?event?PaintEventHandler?Redraw;
????????protected?void?OnRedraw(Rectangle?clipRectangle)
????????{
????????????if?(Redraw?!=?null)
????????????{
????????????????Redraw.Invoke(this?new?PaintEventArgs(dc?clipRectangle));
????????????}
????????}

????????///?
????????///?繪制開(kāi)始事件。
????????///?

????????public?event?EventHandler?DrawStarted;
????????protected?void?OnDrawStarted(object?sender?EventArgs?e)
????????{
????????????drawStarted?=?true;
????????????if?(DrawStarted?!=?null)
????????????{
????????????????DrawStarted.Invoke(sender?e);
????????????}
????????}

????????///?
????????///?繪制完成事件。
????????///?

????????public?event?EventHandler?DrawCompleted;
????????protected?void?OnDrawCompleted(object?sender?EventArgs?e)
????????{
????????????drawStarted?=?false;
????????????cancelEvent.Reset();
????????????if?(DrawCompleted?!=?null)
????????????{
????????????????DrawCompleted.Invoke(sender?e);
????????????}
????????}

????????#endregion

????????#region?私有方法

????????//?在輸出位圖上顯示繪制過(guò)程中的錯(cuò)誤信息
????????private?void?ShowError(string?errMsg)
????????{
????????????Font?font?=?new?Font(“宋體“?9);
????????????SizeF?size?=?dc.MeasureString(errMsg?font

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????75775??2015-05-18?16:45??frmShowPic\AnimatorImage.cs

?????文件????????117??2015-04-25?15:23??frmShowPic\app.config

?????文件????4161536??2015-05-18?18:22??frmShowPic\bin\Debug\frmShowPic.exe

?????文件????????117??2015-04-25?15:23??frmShowPic\bin\Debug\frmShowPic.exe.config

?????文件??????87552??2015-05-18?18:22??frmShowPic\bin\Debug\frmShowPic.pdb

?????文件??????11608??2015-05-18?18:23??frmShowPic\bin\Debug\frmShowPic.vshost.exe

?????文件????????117??2015-04-25?15:23??frmShowPic\bin\Debug\frmShowPic.vshost.exe.config

?????文件????????490??2010-03-17?22:39??frmShowPic\bin\Debug\frmShowPic.vshost.exe.manifest

?????文件????????957??2015-04-24?11:17??frmShowPic\bin\help\開(kāi)發(fā)區(qū)介紹.txt

?????文件????4099536??2015-05-18?18:40??frmShowPic\bin\image\開(kāi)發(fā)區(qū)城鄉(xiāng)規(guī)劃圖.jpg

?????文件?????972706??2015-05-18?18:41??frmShowPic\bin\picturebig\01.jpg

?????文件????1074626??2015-05-18?18:41??frmShowPic\bin\picturebig\02.jpg

?????文件????1056329??2015-05-18?18:41??frmShowPic\bin\picturebig\03.jpg

?????文件????1106743??2015-05-18?18:41??frmShowPic\bin\picturebig\04.jpg

?????文件????1075244??2015-05-18?18:42??frmShowPic\bin\picturebig\05.jpg

?????文件????1090927??2015-05-18?18:42??frmShowPic\bin\picturebig\06.jpg

?????文件?????769087??2015-05-18?18:43??frmShowPic\bin\picturesmall\01.jpg

?????文件?????855454??2015-05-18?18:43??frmShowPic\bin\picturesmall\02.jpg

?????文件?????847234??2015-05-18?18:43??frmShowPic\bin\picturesmall\03.jpg

?????文件?????863504??2015-05-18?18:44??frmShowPic\bin\picturesmall\04.jpg

?????文件?????823104??2015-05-18?18:44??frmShowPic\bin\picturesmall\05.jpg

?????文件??????16496??2015-05-18?18:22??frmShowPic\Form1.cs

?????文件??????24211??2015-05-18?18:22??frmShowPic\Form1.Designer.cs

?????文件??????34404??2015-05-18?18:22??frmShowPic\Form1.resx

?????文件???????4530??2015-05-18?17:13??frmShowPic\frmShowPic.csproj

?????文件????????861??2015-05-13?21:32??frmShowPic\frmShowPic.sln

????..A..H.?????24064??2015-05-18?18:25??frmShowPic\frmShowPic.suo

?????文件???????4298??2015-05-13?15:34??frmShowPic\imageMag.cs

?????文件???????3280??2015-04-23?18:35??frmShowPic\ImageManager.cs

?????文件???????4004??2015-04-24?09:36??frmShowPic\images\bofang.png

............此處省略38個(gè)文件信息

評(píng)論

共有 條評(píng)論