Template Function wt::bitmap::copy_component

Function Documentation

template<texel T, std::size_t Dims>
bool wt::bitmap::copy_component(const bitmap_t<T, Dims> &src, bitmap_t<T, Dims> &dst, std::uint32_t to_cmp, std::uint32_t from_cmp = 0) noexcept

Copy a component from a source bitmap, to this bitmap. Only works if both bitmaps have identical size, otherwise, resize() first.