none
Convert pixel array (1-D int array) to ImageARGB

Answers

  • I figure out the solution.

    The code snippet:

    int[] ARGBPx;

    ImageARGB ARGBImg;

    byte[] argbByte = new byte[ARGBPx.Length * 4];

    Buffer.BlockCopy(ARGBPx, 0, argbByte, 0, argbByte.Length);

    argbByte.CopyTo(argbImg.Buffer, 0);


    • Marked as answer by Tiffany Chen Wednesday, August 07, 2013 2:41 AM
    • Edited by Tiffany Chen Wednesday, August 07, 2013 2:55 AM
    Wednesday, August 07, 2013 2:41 AM