Good morning folks!

As usual, I have a question that is from my curious mind.

public void DrawString(string s, Font font, Brush brush, float x, float y);

Why are X and Y a float?


this allows for drawing between pixels? :hugs:


I have wondered that myself.

We use float because that is what the desktop uses. They use it for, as Mike said, subpixel drawing. Note that TinyCLR doesn’t support that functionality at the moment.

1 Like

Like Mike said.

I have to admit I cannot wrap my mind around drawing between pixels… Ya can’t see there, I think…

Something like space/time I guess.

In the end of course it’s all rendered down to the integer pixels we all know, but subpixel drawing is used for things like blending, antialiasing, curves, smoothing, and so on.

1 Like