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

Method transformImage

dep/agg/src/agg2d.cpp:1142–1153  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1140
1141//------------------------------------------------------------------------
1142void Agg2D::transformImage(const Image& img, int imgX1, int imgY1, int imgX2, int imgY2,
1143 double dstX1, double dstY1, double dstX2, double dstY2)
1144{
1145 resetPath();
1146 moveTo(dstX1, dstY1);
1147 lineTo(dstX2, dstY1);
1148 lineTo(dstX2, dstY2);
1149 lineTo(dstX1, dstY2);
1150 closePolygon();
1151 double parallelogram[6] = { dstX1, dstY1, dstX2, dstY1, dstX2, dstY2 };
1152 renderImage(img, imgX1, imgY1, imgX2, imgY2, parallelogram);
1153}
1154
1155//------------------------------------------------------------------------
1156void Agg2D::transformImage(const Image& img, double dstX1, double dstY1, double dstX2, double dstY2)

Callers 1

mainAnalyseDriveResponseFunction · 0.80

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected