66 size_t l2 =
alt.layers.size();
78 for (
size_t i = 0; i <
l1; i++)
80 if ((this->
layers[i].enable !=
alt.layers[i].enable) ||
81 (
this->layers[i].colorkey.enable !=
alt.layers[i].colorkey.enable) ||
82 (
this->layers[i].colorkey.value !=
alt.layers[i].colorkey.value) ||
83 (
this->layers[i].alpha.enable !=
alt.layers[i].alpha.enable) ||
84 (
fabs(this->
layers[i].alpha.value -
alt.layers[i].alpha.value) > 0.001) ||
85 (
this->layers[i].layer !=
alt.layers[i].layer) ||
86 (
this->layers[i].can_be_compressed !=
alt.layers[i].can_be_compressed) ||
87 (
this->layers[i].offset_x !=
alt.layers[i].offset_x) ||
88 (
this->layers[i].offset_y !=
alt.layers[i].offset_y))
bool sum(yarp::sig::Image &OutImg, const yarp::sig::Image &InImg, bool colorkey_enable, int colorkey, bool alpha_enable, float alpha, size_t off_x, size_t off_y)
applies an image on the top over another image.