Tinkr2/4.2/AphelionCore/AphelionCore/Graphics/Image32.cs
/// <summary>
/// Draws image onto a supplied bitmap
/// </summary>
/// <param name="dest">Destination bitmap</param>
/// <param name="x">Destination X</param>
/// <param name="y">Destination Y</param>
Draws image onto a supplied bitmap
Draws image onto a supplied bitmap
public void Draw(Bitmap dest, int x, int y)
      {
         int i = 0;
         lock (dest)
         {
            dest.DrawImage(x, y, _bmp, 0, 0, _bmp.Width, _bmp.Height);
            while (i < _pixels.Length)
            {
               var c = _pixels[i++];
               dest.DrawRectangle(Color.Black, 0, c.X + x, c.Y + y, 1, 1, 0, 0, c.Color, 0, 0, c.Color, 0, 0, c.Alpha);
            }
         }
      }
public void Draw ( Bitmap dest , int x , int y ) { int i = 0 ; lock ( dest ) { dest . DrawImage ( x , y , _bmp , 0 , 0 , _bmp . Width , _bmp . Height ) ; while ( i < _pixels . Length ) { var c = _pixels [ i ++ ] ; dest . DrawRectangle ( Color . Black , 0 , c . X + x , c . Y + y , 1 , 1 , 0 , 0 , c . Color , 0 , 0 , c . Color , 0 , 0 , c . Alpha ) ; } } }
Draws image onto a supplied bitmap
Draws image onto a supplied bitmap
dest
Bitmap
None
x
int
None
y
int
None