/// <summary> /// Copies color information from an ARGB byte array into this WriteableBitmap. /// </summary> /// <param name="bmp">The WriteableBitmap.</param> /// <param name="count">The number of bytes to copy from the buffer.</param> /// <param name="buffer">The color buffer as byte ARGB values.</param> /// <returns>The WriteableBitmap that was passed as parameter.</returns> public static BitmapBuffer FromByteArray(this BitmapBuffer bmp, byte[] buffer, int count) { return(bmp.FromByteArray(buffer, 0, count)); }
/// <summary> /// Copies all the color information from an ARGB byte array into this WriteableBitmap. /// </summary> /// <param name="bmp">The WriteableBitmap.</param> /// <param name="buffer">The color buffer as byte ARGB values.</param> /// <returns>The WriteableBitmap that was passed as parameter.</returns> public static BitmapBuffer FromByteArray(this BitmapBuffer bmp, byte[] buffer) { return(bmp.FromByteArray(buffer, 0, buffer.Length)); }