[quote user="CapnMac82"]
Bakster
That I have to look into sometime. Seems odd that would help but I believe you that it will.
For JPEG files, there's a mathematical "map" for every pixel in the image at the required display resolution. Unlike a bitmap which maps every single pixel, JPEG only records the beginning and end of a given area of color.
Where that describes a diagonal line, which in vector graphics would be recorded as start, stop, color, the JPEG will "shade" the diagonal which better "hints" at where the line might be when it's a fraction of a pixel.
But, that fractional pixel is goverened by the pallet color count in the header to the file. So, if you are only allowing, say, 16 colors, the shaded colors have fewer shades for incommplete pixels. Which means the rendition will be crisper, as fewer of the potential pixels will be "on."
Some graphics software have a Tool labeled "Posterize" this reduces the color pallet to only the colors used. Which de-aliases all of the graphics. But can make some lines jagged if enlarged enough. And lines not at the ordinal 0,45,& 90 angles can get "blobby" as the angle may need 2 or 3 or mmore pixels to be in a row to render the actual angle.
Consider a putative array which is 12 x 8 pixels. A 45º diagonal line from the bottom left will track through 1,1; 2,2; 3,3; 4,4; 5,5; 6,6; 7,7; and 8,8.
A 30º line is going to go through 1,1; 2,2; 3,2; 4,3; 5,4; 5,5; 5,6; 6,6; 7,6; 8,7; 9,7; 10,8; 11,8; 12,9.
At 8 colors, many more of the pixel will be "lit" in shades of the line color. At 16 colors 4 times the pixels will be lit. This progresses up to high color volumes.
I understand it for the most part. You lost me on the putatuve array. LOL. That is very interesting and thanks for explaining!
CapnMac82
Zooming into an image down to the pixel level can be illumminating.
Indeed! Kind of like the movie, Tron! Zooming down to the micro level. Speaking of Tron. I don't know what you guys thought about the Tron remake, Legacy, but I liked it. I bought the 3D version and it looked pretty cool.