Exemple #1
0
 /// <summary>
 /// Copies all the Pixels from the WriteableBitmap into a ARGB byte array.
 /// </summary>
 /// <param name="bmp">The WriteableBitmap.</param>
 /// <returns>The color buffer as byte ARGB values.</returns>
 public static byte[] ToByteArray(this BitmapBuffer bmp)
 {
     return(bmp.ToByteArray(0, -1));
 }
Exemple #2
0
 /// <summary>
 /// Copies the Pixels from the WriteableBitmap into a ARGB byte array.
 /// </summary>
 /// <param name="bmp">The WriteableBitmap.</param>
 /// <param name="count">The number of pixels to copy.</param>
 /// <returns>The color buffer as byte ARGB values.</returns>
 public static byte[] ToByteArray(this BitmapBuffer bmp, int count)
 {
     return(bmp.ToByteArray(0, count));
 }