private Engine.Color.Cell GetColorFromPosition()
        {
            int i = CalculateFaderIndex();

            Engine.Color.Cell c = new Engine.Color.Cell(t_faderImage.Array, t_faderImage.GetOffset(0, i));

            return(c);
        }
Beispiel #2
0
 private static void thread_CopyFromImage(Engine.Surface.Canvas source, Engine.Surface.Canvas dest, int originX, int originY, int destX, int destY, int width, int height)
 {
     for (int y = destY; y < height; y++)
     {
         int offset         = source.GetOffset(originX, originY + y);
         int offsetNewImage = dest.GetOffset(destX, y);
         for (int x = destX; x < width; x++)
         {
             Engine.Color.Cell c = new Color.Cell(source.Array, offset);
             c.WriteBytes(dest.Array, offsetNewImage);
             offset         += Engine.BytesPerPixel.BGRA;
             offsetNewImage += Engine.BytesPerPixel.BGRA;
         }
     }
 }