コード例 #1
0
 /// <summary>
 /// Pins the array and returns the corresponding generic image.
 /// </summary>
 /// <typeparam name="TColor">Color type.</typeparam>
 /// <param name="array">The array to lock.</param>
 /// <returns>The generic image which shares data with the pined array.</returns>
 public static Image <TColor> Lock <TColor>(this TColor[,] array)
     where TColor : struct
 {
     return(Image <TColor> .Lock(array));
 }
コード例 #2
0
 /// <summary>
 /// Pins the array and returns the corresponding generic image of a specified portion.
 /// </summary>
 /// <typeparam name="TColor">Color type.</typeparam>
 /// <param name="array">The array to lock.</param>
 /// <param name="area">Working area.</param>
 /// <returns>The generic image which shares data with the pined array.</returns>
 public static Image <TColor> Lock <TColor>(this TColor[,] array, Rectangle area)
     where TColor : struct
 {
     return(Image <TColor> .Lock(array).GetSubRect(area));
 }
コード例 #3
0
 /// <summary>
 /// Pins the array and returns the corresponding generic image.
 /// </summary>
 /// <typeparam name="TColor">Color type.</typeparam>
 /// <param name="array">The array to lock.</param>
 /// <returns>The generic image which shares data with the pined array.</returns>
 public static Image <TColor> Lock <TColor>(this TColor[,] array)
     where TColor : unmanaged
 {
     return(Image <TColor> .Lock(array));
 }