Woolz Image Processing
Version 1.8.3
|
Functions for blending images. More...
Macros | |
#define | WLZ_FAST_CODE |
#define | restrict |
Functions | |
WlzErrorNum | WlzImageBlendObjToBufRGBA (WlzUByte *buffer, WlzObject *obj, WlzIVertex2 bufOrg, WlzIVertex2 bufSz, WlzUInt useAlpha, WlzUInt color) |
Blends the given 2D object's domain into the given buffer using Porter Duff source over destination. Object values are ignored. More... | |
Functions for blending images.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define WLZ_FAST_CODE |
#define restrict |
WlzErrorNum WlzImageBlendObjToBufRGBA | ( | WlzUByte * | buffer, |
WlzObject * | obj, | ||
WlzIVertex2 | bufOrg, | ||
WlzIVertex2 | bufSz, | ||
WlzUInt | useAlpha, | ||
WlzUInt | color | ||
) |
Blends the given 2D object's domain into the given buffer using Porter Duff source over destination. Object values are ignored.
buffer | Given buffer with either 3 or (when alpha is used) 4 bytes per pixel. |
obj | Given object to blend into the buffer. |
bufOrg | Position of the buffer origin. |
bufSz | Size of the buffer. |
useAlpha | Use alpha channel if non-zero. |
color | Colour to blend within the object's domain. |
References _WlzIntervalWSpace::lftpos, _WlzIntervalWSpace::linpos, _WlzIntervalWSpace::rgtpos, _WlzObject::type, _WlzIVertex2::vtX, _WlzIVertex2::vtY, WLZ_2D_DOMAINOBJ, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_PROPERTY_NULL, WLZ_RASTERDIR_ILIC, WlzInitRasterScan(), and WlzNextInterval().