Image Interpolation with Contour Stencils
|
Draw a black antialiased line. More...
Go to the source code of this file.
Defines | |
#define | PIXEL_STRIDE 3 |
#define | SWAP(A, B) |
Functions | |
void | DrawLine (uint32_t *Image, int Width, int Height, float x1, float y1, float x2, float y2, const float *Color) |
Draw an antialiased line. |
Draw a black antialiased line.
Copyright (c) 2010-2011, Pascal Getreuer All rights reserved.
This program is free software: you can use, modify and/or redistribute it under the terms of the simplified BSD License. You should have received a copy of this license along this program. If not, see <http://www.opensource.org/licenses/bsd-license.html>.
Definition in file drawline.c.
#define PIXEL_STRIDE 3 |
Definition at line 19 of file drawline.c.
#define SWAP | ( | A, | |
B | |||
) |
Temp = A; \ A = B; \ B = Temp;
Definition at line 21 of file drawline.c.
void DrawLine | ( | uint32_t * | Image, |
int | Width, | ||
int | Height, | ||
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2, | ||
const float * | Color | ||
) |
Draw an antialiased line.
Image | image to draw on |
Width,Height | image dimensions |
x1,y1,x2,y2 | line coordinates |
Color | RGB color of the line |
Definition at line 59 of file drawline.c.