20 #include <QDomDocument>
21 #include <QDomElement>
50 int band = elem.attribute(
"band",
"-1" ).toInt();
67 if ( !inputBlock || inputBlock->
isEmpty() )
75 if ( !hasTransparency )
89 for (
size_t i = 0; i < ( size_t )width*height; i++ )
93 QRgb c = inputBlock->
color( i );
96 outputBlock->
setColor( i, pixelColor );
105 if ( parentElem.isNull() )
110 QDomElement rasterRendererElem = doc.createElement(
"rasterrenderer" );
112 rasterRendererElem.setAttribute(
"band",
mBand );
113 parentElem.appendChild( rasterRendererElem );
129 if ( !input )
return false;