コード例 #1
0
 public MarqueeDisplayPage54(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = (float)(30 / this.effect.EntrySpeed);
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
         System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(this.oldBitmap);
         graphics.Clear(System.Drawing.Color.Black);
         graphics.Dispose();
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap    = pNew;
     this.nowPositionF = 0f;
     this.nowState     = MarqueeDisplayState.First;
     this.pennum       = pNew.Width / 20;
     if (this.pennum == 0)
     {
         this.pennum = 1;
     }
     this.Exit = MarqueeDisplay.getExtInstance(this.newBitmap, pSetting);
 }
コード例 #2
0
 public MarqueeDisplayPage18(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = 30f / (float)pSetting.EntrySpeed;
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
         System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(this.oldBitmap);
         graphics.Clear(System.Drawing.Color.Black);
         graphics.Dispose();
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap    = pNew;
     this.nowPositionF = (float)(-(float)this.newBitmap.Width * 3);
     this.nowState     = MarqueeDisplayState.First;
     this.all          = new System.Drawing.Bitmap(this.newBitmap, new System.Drawing.Size(this.newBitmap.Width * 3, this.newBitmap.Height));
     System.Drawing.Graphics graphics2 = System.Drawing.Graphics.FromImage(this.all);
     System.Drawing.Pen      pen       = new System.Drawing.Pen(System.Drawing.Color.Black);
     for (int i = 0; i < this.all.Width; i += 2)
     {
         graphics2.DrawLine(pen, new System.Drawing.Point(i, 0), new System.Drawing.Point(i, this.all.Height));
     }
     graphics2.Dispose();
     this.x3   = this.newBitmap.Width;
     this.Exit = MarqueeDisplay.getExtInstance(this.newBitmap, pSetting);
 }
コード例 #3
0
 public MarqueeDisplayPage15(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = (float)(20 / this.effect.EntrySpeed);
     pNew.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipX);
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap = pNew;
     this.Exit      = MarqueeDisplay.getExtInstance(pNew, pSetting);
 }
コード例 #4
0
 public MarqueeDisplayPage26(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = (float)(20 / this.effect.EntrySpeed);
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap    = pNew;
     this.nowPositionF = (float)(this.newBitmap.Width / 2 + this.newBitmap.Height);
     this.nowState     = MarqueeDisplayState.First;
     this.Exit         = MarqueeDisplay.getExtInstance(this.newBitmap, pSetting);
 }
コード例 #5
0
 public MarqueeDisplayPage37(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = 0.03f;
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap    = pNew;
     this.nowPositionF = 0f;
     this.nowState     = MarqueeDisplayState.First;
     this.Exit         = MarqueeDisplay.getExtInstance(this.newBitmap, pSetting);
 }
コード例 #6
0
 public MarqueeDisplayPage24(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = 30f / (float)pSetting.EntrySpeed;
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
         System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(this.oldBitmap);
         graphics.Clear(System.Drawing.Color.Black);
         graphics.Dispose();
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap = pNew;
     this.nowState  = MarqueeDisplayState.First;
     this.reNum     = (int)(this.step * 3f);
     this.Exit      = MarqueeDisplay.getExtInstance(this.newBitmap, pSetting);
 }
コード例 #7
0
 public MarqueeDisplayPage38(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = 0.03f;
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
         System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(this.oldBitmap);
         graphics.Clear(System.Drawing.Color.Black);
         graphics.Dispose();
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap    = pNew;
     this.nowPositionF = 1f;
     this.nowState     = MarqueeDisplayState.First;
     this.Exit         = MarqueeDisplay.getExtInstance(this.newBitmap, pSetting);
 }
コード例 #8
0
 public MarqueeDisplayPage20(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = (float)(30 / pSetting.EntrySpeed);
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
         System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(this.oldBitmap);
         graphics.Clear(System.Drawing.Color.Black);
         graphics.Dispose();
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap    = pNew;
     this.nowPositionF = (float)(-(float)this.newBitmap.Height * 3);
     this.nowState     = MarqueeDisplayState.First;
     this.all          = new System.Drawing.Bitmap(this.newBitmap, new System.Drawing.Size(this.newBitmap.Width, this.newBitmap.Height * 3));
     this.y1           = -this.newBitmap.Height;
     this.y3           = this.newBitmap.Height;
     this.Exit         = MarqueeDisplay.getExtInstance(this.newBitmap, pSetting);
 }
コード例 #9
0
 public MarqueeDisplayPage48(System.Drawing.Bitmap pLast, System.Drawing.Bitmap pNew, LedEffectsSetting pSetting)
 {
     this.effect = pSetting;
     this.step   = (float)(20 / this.effect.EntrySpeed);
     if (pLast == null)
     {
         this.oldBitmap = new System.Drawing.Bitmap(pNew.Width, pNew.Height);
     }
     else
     {
         this.oldBitmap = pLast;
     }
     this.newBitmap = pNew;
     this.Exit      = MarqueeDisplay.getExtInstance(pNew, pSetting);
     if (pNew.Width % 2 == 1)
     {
         this.mx = pNew.Width / 2 + 1;
     }
     else
     {
         this.mx = pNew.Width / 2;
     }
     if (pNew.Height % 2 == 1)
     {
         this.my = pNew.Height / 2 + 1;
     }
     else
     {
         this.my = pNew.Height / 2;
     }
     this.pTop         = new System.Drawing.Point(this.mx, 0);
     this.pLeft        = new System.Drawing.Point(0, this.my);
     this.pRight       = new System.Drawing.Point(pNew.Width - 1, this.my);
     this.pBottom      = new System.Drawing.Point(this.mx, pNew.Height - 1);
     this.pCenter      = new System.Drawing.Point(this.mx, this.my);
     this.nowPositionF = (float)((this.newBitmap.Width + this.newBitmap.Height) / 2);
 }