nr-filter-getalpha.cpp revision b0fc1b5cad067af61ffdc6ff82667bfea7ef3f77
/*
* Functions for extracting alpha channel from NRPixBlocks.
*
* Author:
* Niko Kiirala <niko@kiirala.com>
*
* Copyright (C) 2007 Niko Kiirala
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/nr-filter-getalpha.h"
#include "libnr/nr-pixblock.h"
namespace NR {
{
g_warning("Memory allocation failed in filter_get_alpha");
delete dst;
return NULL;
}
for (int i = 0 ; i < end ; i += 4) {
data[i + 0] = 0;
data[i + 1] = 0;
data[i + 2] = 0;
}
return dst;
}
} // namespace NR
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :