Space between pixels

I am relatively new to programming and ask a question about drawing on the display. I am sure this is not the case with Java, but I am learning Java, so I will ask about it in this context. Here is some context for the question:

From a Wikipedia entry for β€œPixel” (emphasis added): β€œIn digital image processing, a pixel ... is the smallest controllable image element displayed on the screen.”

From the Java API entry for the Graphics class (highlighted by me): "The operations that draw the outline of a shape are controlled by traversing an infinite thin path between pixels with a pixel pen size that hangs down and to the right of the anchor point on the path."

My question is:

How can Java represent shape outlines as the space between pixels when a pixel is the smallest controlled display element?

Put another way:

0 | 0

"0" is two pixels. "|" Above is the "infinitely thin path between pixels." If you change only "0", how does Java do the β€œ|" visible to people? Does the edge color change to "0"? (Is that what a pixel sizing pen means - does it color half of both pixels?)

+5
source share
1 answer

that hangs down and to the right of the anchor point on the path

The pen draws the right 0 .

+6
source

All Articles