MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / attach

Method attach

dep/agg/src/agg2d.cpp:124–146  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

122
123//------------------------------------------------------------------------
124void 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//------------------------------------------------------------------------

Callers 2

bitmap.ccFile · 0.45
test_aggFunction · 0.45

Calls 7

gamma_noneClass · 0.85
reset_clippingMethod · 0.45
gammaMethod · 0.45
bufMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
strideMethod · 0.45

Tested by 1

test_aggFunction · 0.36