Search code examples
graphicsbitmappixelpixmap

Computer Graphics and pixmap


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


Solution

  • 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.