41 #include <blitz/array.h> 62 static void setPixel(blitz::Array<T,3>& image,
64 const blitz::TinyVector<T,3>& color);
81 static void setPixel(blitz::Array<T,2>& image,
101 template<
typename Type>
102 static void drawLine(blitz::Array<Type,3> & image,
103 int y0,
int x0,
int y1,
int x1,
104 const blitz::TinyVector<Type,3>& color);
125 template<
typename Type>
126 static void drawLine(blitz::Array<Type,2> & image,
127 int y0,
int x0,
int y1,
int x1,
143 template<
typename Type>
144 static void drawCircle(blitz::Array<Type,3>& image,
145 int yCenter,
int xCenter,
int radius,
146 const blitz::TinyVector<Type,3>& color);
162 template<
typename Type>
163 static void drawCircle(blitz::Array<Type,2>& image,
164 int yCenter,
int xCenter,
int radius,
183 template<
typename Type>
184 static void drawRect(blitz::Array<Type,3> & image,
185 int y0,
int x0,
int y1,
int x1,
186 const blitz::TinyVector<Type,3>& color);
206 template<
typename Type>
207 static void drawRect(blitz::Array<Type,2> & image,
208 int y0,
int x0,
int y1,
int x1,
221 template<
typename Type>
222 static void circlePoints(blitz::Array<Type,2>& image,
223 int cy,
int cx,
int y,
int x,
226 template<
typename Type>
227 static void circlePoints(blitz::Array<Type,3>& image,
228 int cy,
int cx,
int y,
int x,
229 const blitz::TinyVector<Type,3>& color);
238 #include "Blitz2Ddraw.icc" static void drawRect(blitz::Array< Type, 3 > &image, int y0, int x0, int y1, int x1, const blitz::TinyVector< Type, 3 > &color)
Draw a rectangle into an blitz array the upper right corner and the lower left corner must be given...
static void setPixel(blitz::Array< T, 3 > &image, int y, int x, const blitz::TinyVector< T, 3 > &color)
Sets a single pixel in a image.
static void drawCircle(blitz::Array< Type, 3 > &image, int yCenter, int xCenter, int radius, const blitz::TinyVector< Type, 3 > &color)
Draw a simple, non-aliased circle.
static void drawLine(blitz::Array< Type, 3 > &image, int y0, int x0, int y1, int x1, const blitz::TinyVector< Type, 3 > &color)
Draw a simple, non-aliased line.
Basic drawing routines for blitz arrays.