/// <summary> /// Copy from a Luminance image to the BGRb pixel buffer. /// </summary> /// <param name="dst">The destination of the copy.</param> /// <param name="src">The source of the copy.</param> unsafe public static GDIDIBSection Copy(GDIDIBSection dst, PixelArray<Lumb> src) { int imageSize = src.Width * src.Height; for (int y = 0; y < src.Height; y++) for (int x = 0; x < src.Width; x++) { dst.SetColor(x, y, src.GetColor(x, y)); } return dst; }