M
moss
Hi people,
my question is this: How can I get the byte size of an in-memory Bitmap?
For example, I want to know that a 100 KB JPEG takes a 2.25 MB of memory
space when uncompressed... I tried saving an image to a memory stream and
then converting the stream to a byte array and getting the length of the
array, but that doesn't produce the correct results... Any ideas?
my question is this: How can I get the byte size of an in-memory Bitmap?
For example, I want to know that a 100 KB JPEG takes a 2.25 MB of memory
space when uncompressed... I tried saving an image to a memory stream and
then converting the stream to a byte array and getting the length of the
array, but that doesn't produce the correct results... Any ideas?