I'm rendering a scene using scanline method. In order to get rid of aliasing we need to render a scene with higher resolution (2x, for example). I'm trying to figure out how to calculate the color of a sample when it is not taken from the center of the subpixel. For example, we have 4 subpixels per 1 pixel, where the blue circle is the center of the subpixel, and the red circle is the sample position.
I tried to find information about sample calculation, but got nothing. I assume that I need to calculate sample color using 4 neighboring subpixels and apply bilinear interpolation to them to find the color.
Is my guess true, or does it have to somehow calculate the color of the sample in a different way?

