Image Interpolation with Contour Stencils
Defines | Functions

drawline.c File Reference

Draw a black antialiased line. More...

#include <math.h>
#include "drawline.h"
Include dependency graph for drawline.c:

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.

Detailed Description

Draw a black antialiased line.

Author:
Pascal Getreuer <getreuer@gmail.com>

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 Documentation

#define PIXEL_STRIDE   3

Definition at line 19 of file drawline.c.

#define SWAP (   A,
 
)
Value:
Temp = A; \
    A = B; \
    B = Temp;

Definition at line 21 of file drawline.c.


Function Documentation

void DrawLine ( uint32_t *  Image,
int  Width,
int  Height,
float  x1,
float  y1,
float  x2,
float  y2,
const float *  Color 
)

Draw an antialiased line.

Parameters:
Imageimage to draw on
Width,Heightimage dimensions
x1,y1,x2,y2line coordinates
ColorRGB color of the line

Definition at line 59 of file drawline.c.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines