Fix pattern bbox offset

This commit is contained in:
Svetlana Kulikova
2024-10-30 17:58:01 +03:00
parent a69a992a0d
commit ce88c4ca95

View File

@ -1677,10 +1677,10 @@ namespace PdfReader
oImage->Create(pBgraData, nWidth, nHeight, 4 * nWidth);
double xMin, yMin, xMax, yMax;
xMin = nX0 * dXStep;
yMin = nY0 * dYStep;
xMax = nX1 * dXStep;
yMax = nY1 * dYStep;
xMin = nX0 * dXStep + pBBox[0];
yMin = nY0 * dYStep + pBBox[1];
xMax = nX1 * dXStep + pBBox[0];
yMax = nY1 * dYStep + pBBox[1];
Transform(pMatrix, xMin, yMin, &xMin, &yMin);
Transform(pMatrix, xMax, yMax, &xMax, &yMax);
pGState->moveTo(xMin, yMin);