TuttleOFX  1
terry::draw Namespace Reference

Functions

template<class View >
GIL_FORCEINLINE void fill_pixels (View &dstView, const typename View::value_type &pixelValue)
template<class View >
GIL_FORCEINLINE void fill_pixels (View &dstView, const Rect< std::ssize_t > &window, const typename View::value_type &pixelValue)
 fill all pixels inside the window, with the color pixelValue.
template<class DIterator , class DPixel >
GIL_FORCEINLINE void fill_pixels_range (DIterator dstBegin, const DIterator &dstEnd, const DPixel &pixelValue)
 fill a range of pixels (on the same line or with an 1d_traversable image).

Function Documentation

template<class View >
GIL_FORCEINLINE void terry::draw::fill_pixels ( View &  dstView,
const typename View::value_type &  pixelValue 
)

Definition at line 14 of file fill.hpp.

Referenced by fill_pixels().

template<class View >
GIL_FORCEINLINE void terry::draw::fill_pixels ( View &  dstView,
const Rect< std::ssize_t > &  window,
const typename View::value_type &  pixelValue 
)

fill all pixels inside the window, with the color pixelValue.

Parameters:
[out]dstViewImage view to fill.
[in]windowRectangle region of the image to fill.
[in]pixelValuePixel value used to fill.

Definition at line 30 of file fill.hpp.

References fill_pixels(), terry::subimage_view(), terry::Rect< T >::x1, terry::Rect< T >::x2, terry::Rect< T >::y1, and terry::Rect< T >::y2.

Here is the call graph for this function:

template<class DIterator , class DPixel >
GIL_FORCEINLINE void terry::draw::fill_pixels_range ( DIterator  dstBegin,
const DIterator &  dstEnd,
const DPixel &  pixelValue 
)

fill a range of pixels (on the same line or with an 1d_traversable image).

Parameters:
[out]dstBeginBegining of the region to fill. The content is filled but the original iterator is not modified (not a reference parameter).
[in]dstEndEnd of the region to fill.
[in]pixelValuePixel value used to fill.

Definition at line 49 of file fill.hpp.

Referenced by terry::filter::floodFill::flood_fill().