문제

I have a question:

Assuming transfer rate of 0.1mb/sec how much time would be necessary to load pixmaps with resolution of 512x512.

Any help will be appriciated

도움이 되었습니까?

해결책

512 * 512 = 262144 pixels

Assuming 8 bits per color RGB, 262144 * 3 = 786432 bytes or 0.75 mb

So it would take about 7.5 seconds... ideally.

Throw in an alpha channel and it goes up to 10 seconds.

Note that calculation is for RAW pixmap data. If it is compressed, like JPEG or PNG the file will be smaller, but the end size will depend on the content of the image, so there is no way to tell in advance.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top