Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsafe
- {
- //convert the UInt32[] into byte array and then assign the pointer to it
- fixed (byte* ptr = Misc.ConvertFromUInt32Array(image))
- {
- Bitmap bmp = new Bitmap(200,64,800,
- PixelFormat.Format32bppRgb,
- new IntPtr(ptr));
- bmp.Save("test.bmp");
- }
- }
- bmp.RotateFlip(RotateFlipType.Rotate180FlipX);
- private static Bitmap ConvertFromBytes(Byte[] imagebytes)
- {
- return new Bitmap(new MemoryStream(imagebytes));
- }
Add Comment
Please, Sign In to add comment