Trying to figure out how to calculate how much memory an image will take.. can someone just confirm if my working is correct?
(note, this isn't B3D code, just some mathematical working :))
XWidth*YWidth*ColorDepth = BitsPerImage
BitsPerImage/8=BytesPerImage
BytesPerImage/1024/1024=MegabytesPerImage
Thus, a 200x280x32 image for example, equals:
(in process from left to right, not a single equation)
200x280x32/8/1024/1024=0.213 or 213kb for the image.
Is this correct?
+BlackD
(note, this isn't B3D code, just some mathematical working :))
XWidth*YWidth*ColorDepth = BitsPerImage
BitsPerImage/8=BytesPerImage
BytesPerImage/1024/1024=MegabytesPerImage
Thus, a 200x280x32 image for example, equals:
(in process from left to right, not a single equation)
200x280x32/8/1024/1024=0.213 or 213kb for the image.
Is this correct?
+BlackD