Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_outline_generator.cpp File Reference

Go to the source code of this file.

Classes

class  LinearStorage
 
class  PaintDeviceStorage
 

Macros

#define TRY_PIXEL(deltaRow, deltaCol, test_edge)
 

Macro Definition Documentation

◆ TRY_PIXEL

#define TRY_PIXEL ( deltaRow,
deltaCol,
test_edge )
Value:
{ \
int test_row = *row + deltaRow; \
int test_col = *col + deltaCol; \
if ( (0 <= (test_row) && (test_row) < height && 0 <= (test_col) && (test_col) < width) && \
isOutlineEdge (storage, test_edge, test_col, test_row, width, height)) \
{ \
*row = test_row; \
*col = test_col; \
*edge = test_edge; \
break; \
} \
}

Definition at line 196 of file kis_outline_generator.cpp.

196#define TRY_PIXEL(deltaRow, deltaCol, test_edge) \
197 { \
198 int test_row = *row + deltaRow; \
199 int test_col = *col + deltaCol; \
200 if ( (0 <= (test_row) && (test_row) < height && 0 <= (test_col) && (test_col) < width) && \
201 isOutlineEdge (storage, test_edge, test_col, test_row, width, height)) \
202 { \
203 *row = test_row; \
204 *col = test_col; \
205 *edge = test_edge; \
206 break; \
207 } \
208 }