When ON, the lines are drawn antialiased: along a line, each column (each row for a line higher than wide) is drawn on the two pixels nearest to the line, each with the part of the line that falls on it, from 0 to 1 (the two parts add up to 1); the pixels at the two ends of a line get half of their part. With mode addition OFF, the color is drawn over each of these pixels with its alpha multiplied by that part, rounded to 1/255, so that the line blends into the video (a pixel whose alpha rounds to 0 is left unchanged), and a line whose two ends fall on the same pixel is drawn there with the alpha of the color, as when antialiased is OFF. With mode addition ON, the red, green and blue values of the color multiplied by its alpha and by that part are added to those of the pixels, up to 255. Where two lines of a path join (Draw Polyline), the pixel of the joint gets the halves of both lines, its whole part: with mode addition OFF it is drawn once with the alpha of the color of the line that ends there, ON each line adds its half.
version 7.0.250921
Edit All Pages