Overlay() merges from another image over the current image at the specified offsets for the specified width and height. If no width/height parameters are given, the entire width and/or height are used. Clipping is not performed. However, if the copy would go out of bounds, an error will be returned and the copy will not be performed. The alpha channel is used for the merge operation from the source image only. The destination's alpha remains unaffected - the alpha is used for merging the colors only.
Definition at line 1069 of file CATImage.cpp. References AbsWidth(), CAT_ERR_IMAGE_MUST_INITIALIZE, CAT_ERR_IMAGE_NULL, CAT_ERR_IMAGE_OVERLAY_OUT_OF_BOUNDS, CAT_SUCCESS, CATASSERT, CATRESULT, fData, fHeight, fWidth, Height(), kBytesPerPixel, Width(), XOffsetAbs(), and YOffsetAbs(). Referenced by CATSwitchMulti::Draw(), CATSwitch::Draw(), CATSlider::Draw(), CATRadioButton::Draw(), CATProgress::Draw(), CATPictureMulti::Draw(), CATPicture::Draw(), CATKnob::Draw(), and CATControl::Draw().
|