bitmap from memorystream has altered pixels
- From: margec3 <margec3@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 16:40:55 -0000
// at server, bitmapStream is a MemoryStream that i put together by
converting a gif file from indexed pixel format to raw (A)RBG format
Bitmap carrierBitmap = new Bitmap(bitmapStream);
// store encrypted data at the 'R' element of pixels at various
positions of carrierBitmap (i am doing image steganography)
// save the worked up bitmap back to memory stream
bitmapStream.Flush();
carrierBitmap.Save(bitmapStream,
System.Drawing.Imaging.ImageFormat.Png);
//******* examine pixels of the first 10 worked up positions of the
result bitmap (to be compared with the one recovered by the client
later)
// convert memory stream to byte array
byte[] embeddedBuf = bitmapStream.ToArray();
// send byte array to pocket PC client
// recover the memory stream at client
Bitmap carrierBitmap = new Bitmap(bitmapStream);
//******* examine pixels of the first 10 positions of the recovered
bitmap, and they're different, not just the R value that i need to
recover the original data with, but G and B too
can someone shed some light about why and how i can recover the exact
bitmap sent by the server?
.
- Follow-Ups:
- Re: bitmap from memorystream has altered pixels
- From: margec3
- Re: bitmap from memorystream has altered pixels
- Prev by Date: Re: UDP over vodafone
- Next by Date: Re: bitmap from memorystream has altered pixels
- Previous by thread: Re: GetDiskFreeSpace question
- Next by thread: Re: bitmap from memorystream has altered pixels
- Index(es):
Relevant Pages
|