Example #1
0
 public void SetPixelInvers(System.Drawing.Color color, SpriteImage si)
 {
     try
     {
         _bm.SetPixel(_x, _y, color);
         _x = _x + 1;
         if (_x + 1 > si.Width)
         {
             _x = 0;
             _y = _y - 1;
         }
     }
     catch (Exception ex)
     {
     }
 }
Example #2
0
        public void SetPixel(System.Drawing.Color color, SpriteImage si, bool trans)
        {
            try
            {
                if (trans == false)
                {
                    _bm.SetPixel(_x, _y, color);
                }
                _x = _x + 1;
                if (_x + 1 > si.Width)
                {
                    _x = 0;
                    _y = _y + 1;
                }

            }
            catch (Exception ex)
            {
            }
        }