def scaleBitmap(bitmap, scaleX, scaleY):
    """
        Scales down the given `bitmap`. Each axis can scale differently by setting `scaleX`, `scaleY`. Positive integer values only.
    """
    width = len(bitmap[0])
    height = len(bitmap)
    return [[bitmap[j][i] for i in range(0, width, scaleX)] for j in range(0, height, scaleY)]