20 #include <QDomDocument>
21 #include <QDomElement>
50 int band = elem.attribute(
"band",
"-1" ).toInt();
67 if ( !inputBlock || inputBlock->
isEmpty() )
75 if ( !hasTransparency )
92 QRgb c = inputBlock->
color( i );
93 double alpha = qAlpha( c );
95 outputBlock->
setColor( i, pixelColor );
104 if ( parentElem.isNull() )
107 QDomElement rasterRendererElem = doc.createElement(
"rasterrenderer" );
109 rasterRendererElem.setAttribute(
"band",
mBand );
110 parentElem.appendChild( rasterRendererElem );
126 if ( !input )
return false;