21 #include <QDomDocument>
22 #include <QDomElement>
51 int band = elem.attribute(
"band",
"-1" ).toInt();
68 if ( !inputBlock || inputBlock->
isEmpty() )
76 if ( !hasTransparency )
93 QRgb c = inputBlock->
color( i );
94 double alpha = qAlpha( c );
96 outputBlock->
setColor( i, pixelColor );
105 if ( parentElem.isNull() )
108 QDomElement rasterRendererElem = doc.createElement(
"rasterrenderer" );
110 rasterRendererElem.setAttribute(
"band", mBand );
111 parentElem.appendChild( rasterRendererElem );
127 if ( !input )
return false;