------------------------------------------------------------------------
| 122 | |
| 123 | //------------------------------------------------------------------------ |
| 124 | void Agg2D::attach(unsigned char* buf, unsigned width, unsigned height, int stride) |
| 125 | { |
| 126 | m_rbuf.attach(buf, width, height, stride); |
| 127 | |
| 128 | m_renBase.reset_clipping(true); |
| 129 | m_renBaseComp.reset_clipping(true); |
| 130 | m_renBasePre.reset_clipping(true); |
| 131 | m_renBaseCompPre.reset_clipping(true); |
| 132 | |
| 133 | resetTransformations(); |
| 134 | lineWidth(1.0), |
| 135 | lineColor(0,0,0); |
| 136 | fillColor(255,255,255); |
| 137 | clipBox(0, 0, width, height); |
| 138 | lineCap(CapRound); |
| 139 | lineJoin(JoinRound); |
| 140 | imageFilter(Bilinear); |
| 141 | imageResample(NoResample); |
| 142 | m_masterAlpha = 1.0; |
| 143 | m_antiAliasGamma = 1.0; |
| 144 | m_rasterizer.gamma(agg::gamma_none()); |
| 145 | m_blendMode = BlendAlpha; |
| 146 | } |
| 147 | |
| 148 | |
| 149 | //------------------------------------------------------------------------ |