What my code is doing is iterating over every pixel of the character and looking for 'empty' pixels that have two 'full' pixels that are at 90deg to each other relative to the 'empty' pixel. It then draws sub-pixels in the scaled-up 'empty' pixel to smooth out the stair-step effect created by the naïve scaling.
It's really only good for smoothing out monochrome things, like bitmapped fonts, not images in general.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
What my code is doing is iterating over every pixel of the character and looking for 'empty' pixels that have two 'full' pixels that are at 90deg to each other relative to the 'empty' pixel. It then draws sub-pixels in the scaled-up 'empty' pixel to smooth out the stair-step effect created by the naïve scaling.
It's really only good for smoothing out monochrome things, like bitmapped fonts, not images in general.
Quick set of sample images: https://imgur.com/a/KUDrfPQ
The vector font is a good for a lot of cases, and it might be a better option for my immediate requirements.