Acknowledged

bitmaps occupies too much memory

I have a code

	Communications.makeImageRequest(
			strUrl,
			{},
			{
				:palette => [ Graphics.COLOR_BLACK, Graphics.COLOR_WHITE],
				:maxWidth => w,
				:maxHeight => h,
				:dithering => Communications.IMAGE_DITHERING_NONE
			},
			self.method(:onReceiveImage)

and after response I've checked in memory monitor size of bmp

- sizie in pxel 127x127 (about 16000 pixel)

- size of png - about 400b

- size of bitmap about 4000b

so it means ciq bmp

- no any compression

- and even the size is twice then required because

-- 2 colors in palette so one byte can save info about 8 pixels

-- 16000/8 = 2000 instead of 4000!!

Parents Comment Children
No Data