Skip to main content
7 votes
Accepted

Bitmap-images or SVG

Neither of your suggestions is a solution for crisp 2D graphics at all resolutions. SVGs are great and infinitely scalable, but since you don't know where the pixel boundaries will lie in the final ...
Dan Hulme's user avatar
  • 6,840
5 votes
Accepted

Algorithms to "anti-alias" (or somehow improve) binary 1-bit drawings and fonts

PIL's Image.convert function performs dithering by default when you convert the image to 1-bit—not simply thresholding. That's what creates the noise along the ...
Nathan Reed's user avatar
  • 25.1k
3 votes

Algorithm for thinning a thick line

the canny algorithm is a great start. it takes a sobel input like so. Computes its gradient. Then depending on the gradient orientation it compares all neighbouring pixels aligned with it. If its a ...
Paul Goux's user avatar
3 votes

Algorithms to "anti-alias" (or somehow improve) binary 1-bit drawings and fonts

This is just a supplementary answer based on the accepted answer, using the original 64x128 pixel images instead of the zoomed-in interpolated screen shot. ...
uhoh's user avatar
  • 330
3 votes

Algorithms to "anti-alias" (or somehow improve) binary 1-bit drawings and fonts

Have a look at Improved Alpha-Tested Magnification for Vector Textures and Special Effects [Gre07] (pdf). The gist of their method is to store distance field information in the font texture instead of ...
bernie's user avatar
  • 830
2 votes

Algorithms to "anti-alias" (or somehow improve) binary 1-bit drawings and fonts

In the olden days, for things like fonts, they didn't do antialiasing. They generally hand made bitmap fonts because it generated the clearest, easiest-to-read results. That said, you could look into ...
user1118321's user avatar
  • 3,421
2 votes
Accepted

How bits transformed into graphics?

For a machine like in your image, the IBM PC, the characters shown are created using character ROMs. When software writes the character code into video memory, the memory hardware will use this code ...
luser droog's user avatar
  • 1,378
1 vote

Problem with Corrupted Pixel/color data on bitmap image in Raytracer

I was able to solve my problem, I realized I wasn't using the std::ios::binary flag when writing to the file, but adding it seemed to solve my problem.
JayDee17's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible