scale sprite with hard edges

Hi I am using setScale to scale my sprites up however my problem is that it tries to smooth the edges however my sprites are quite blocky and therefore would scale better with hard edges. Is there anyway I can tell it to scale with hard edges so that it doesn’t try to smooth the edges?

There are test cases demonstrating this, search for “alias”, i can’t remember which test