pixels = bitmap.GetPackedPixelsProfile()->ReserveBuffer(Pixel::L8, w, h);//Pixel::RGBA8888
memcpy(pixels, (unsigned char*)&surface[0], w * h );//w * h * 4
pixels = bitmap.GetPackedPixelsProfile()->ReserveBuffer(Pixel::L8, w, h);//Pixel::RGBA8888
memcpy(pixels, (unsigned char*)&surface[0], w * h );//w * h * 4