Pixel true scaling aka nearest neighbour algorithm

Hi,
I’m trying to develop a pixel game in cocos2d-html5, but I have a small problem. I want to use nearest-neighbour scaling when i upscale my images but i can’t seem to find the solution. Is it even possible? I know you can disable anti-aliasing in cocos2d-x with setAliasTexParameters, but can I do the same in cocos2d-html5? If not what are my options?

Thank you in advance

Hi, right now, only chrome and firefox supports this feature, and they supports it in a different way

for chrome, the canvas context object has a property that turns nearest neighbour on or off

Hello, thank you for your fast answer. Guess I have to manually resize textures and change sprites according to resolution.