Draws antialiased lines of various styles.
Definition in file aaLine.h.
#include <fx.h>


Go to the source code of this file.
Functions | |
| void | aaline (unsigned char *data, int stride, int x1, int x2, float y1, float y2) |
| Draws greyscale antialiased line. | |
| void | aacolline (unsigned char *data, int stride, int x1, int x2, float y1, float y2, unsigned char r, unsigned char g, unsigned char b) |
| Draws colour antialiased line. | |
| void | aacolstrokeline (unsigned char *data, int stride, int x1, int x2, float y1, float y2, FXColor c, int stroke, int w, int h) |
| Draws colour stroked antialiased line. | |
| void | aarampcolstrokeline (unsigned char *data, int stride, int x1, int x2, float y1, float y2, FXColor sc, FXColor ec, int stroke, int w, int h) |
| Draws gradient coloured stroked antialiased line. | |
| void aacolline | ( | unsigned char * | data, | |
| int | stride, | |||
| int | x1, | |||
| int | x2, | |||
| float | y1, | |||
| float | y2, | |||
| unsigned char | r, | |||
| unsigned char | g, | |||
| unsigned char | b | |||
| ) |
Draws colour antialiased line.
Draw colour antialiased line between coordinate points.
| data | Data to draw line to. | |
| stride | Width of data array. | |
| x1 | Starting x pixel. | |
| x2 | Ending x pixel. | |
| y1 | Starting y pixel. | |
| y2 | Ending y pixel. | |
| r | Red intensity. | |
| g | Green intensity. | |
| b | Blue intensity. |
Definition at line 213 of file aaLine.cpp.
References fpart(), ipart(), PLOTCX, PLOTCY, and rfpart().

| void aacolstrokeline | ( | unsigned char * | data, | |
| int | stride, | |||
| int | x1, | |||
| int | x2, | |||
| float | y1, | |||
| float | y2, | |||
| FXColor | c, | |||
| int | stroke, | |||
| int | w, | |||
| int | h | |||
| ) |
Draws colour stroked antialiased line.
Draw colour antialiased line with set thickness between coordinate points.
| data | Data to draw line to. | |
| stride | Width of data array. | |
| x1 | Starting x pixel. | |
| x2 | Ending x pixel. | |
| y1 | Starting y pixel. | |
| y2 | Ending y pixel. | |
| c | Colour. | |
| stroke | Line width. | |
| w | Width of drawing area (for clipping). | |
| h | Height of drawing area (for clipping). |
Definition at line 308 of file aaLine.cpp.
References fpart(), ipart(), PLOTCSX, PLOTCSY, and rfpart().

| void aaline | ( | unsigned char * | data, | |
| int | stride, | |||
| int | x1, | |||
| int | x2, | |||
| float | y1, | |||
| float | y2 | |||
| ) |
Draws greyscale antialiased line.
Draw greyscale antialiased line between coordinate points.
| data | Data to draw line to. | |
| stride | Width of data array. | |
| x1 | Starting x pixel. | |
| x2 | Ending x pixel. | |
| y1 | Starting y pixel. | |
| y2 | Ending y pixel. |
Definition at line 131 of file aaLine.cpp.
References fpart(), ipart(), PLOTX, PLOTY, and rfpart().

| void aarampcolstrokeline | ( | unsigned char * | data, | |
| int | stride, | |||
| int | x1, | |||
| int | x2, | |||
| float | y1, | |||
| float | y2, | |||
| FXColor | sc, | |||
| FXColor | ec, | |||
| int | stroke, | |||
| int | w, | |||
| int | h | |||
| ) |
Draws gradient coloured stroked antialiased line.
Draw antialiased line with set thickness between coordinate points, interpolating the colour between the ends.
| data | Data to draw line to. | |
| stride | Width of data array. | |
| x1 | Starting x pixel. | |
| x2 | Ending x pixel. | |
| y1 | Starting y pixel. | |
| y2 | Ending y pixel. | |
| sc | Start colour. | |
| ec | End colour. | |
| stroke | Line width. | |
| w | Width of drawing area (for clipping). | |
| h | Height of drawing area (for clipping). |
Definition at line 376 of file aaLine.cpp.
References fpart(), ipart(), PLOTCSX, PLOTCSY, and rfpart().

1.5.3