Linnear fix

[agg]Fixed issue when axial gradient didn't render extended part
[Graphics]Removed console log in color function
[Test] page numeration fix
This commit is contained in:
danya
2021-04-27 15:15:31 +03:00
parent 6369200c6e
commit 420e2b8518
4 changed files with 15 additions and 22 deletions

View File

@ -4063,7 +4063,8 @@ namespace PdfReader
TransformToPixels(pGState, x1, y1);
TransformToPixels(pGState, x2, y2);
auto info = NSStructures::GInfoConstructor::get_linear({x1, y1}, {x2, y2}, t0, t1);
auto info = NSStructures::GInfoConstructor::get_linear({x1, y1}, {x2, y2}, t0, t1,
pShading->GetExtendStart(), pShading->GetExtendEnd());
GrColorSpace *ColorSpace = pShading->GetColorSpace();;
float delta = (t1 - t0) / info.shading.function.get_resolution();