Image Interpolation with Contour Stencils
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
drawline.h File Reference

Draw a black antialiased line. More...

#include "basic.h"
Include dependency graph for drawline.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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. More...
 

Detailed Description

Draw a black antialiased line.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.gmail.nosp@m..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.h.

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: