G
Guest
I want to convert an ushort * to a byte[] array needed for the Memorystream
ushort *pshort=FileImageBuffer16.GetPtr(0,iY);
Stream.Write((byte[]) pshort,0,iWidth*2);
The big problem is that (ushort*) typecasting to (byte[] ) gives me
headaches.
Any idea how to do this?
Thanks
ushort *pshort=FileImageBuffer16.GetPtr(0,iY);
Stream.Write((byte[]) pshort,0,iWidth*2);
The big problem is that (ushort*) typecasting to (byte[] ) gives me
headaches.
Any idea how to do this?
Thanks