Commit 3e2f51d5 authored by Scott Wittenburg's avatar Scott Wittenburg

Fix context2d pdf export image flip axis

It seems the libharu coordinate system is flipped about the y axis,
rather than the x axis, with respect to OpenGL.
parent 533057e9
baa21e41b8c62abcf33c1725bad0f21c4ca9534abedfcc004eed96393ebce80bb03b02053d51cdd136b56876254dcec6f27a608f6598143d85dd00f6b15dc93d
fcdf54076525a02b974c6eed8fdf8cd3a6dc4b1666da0a9bdc4ed6d2a5d3370083a223d73e449661cca5b5b27e7448dfed9ba991ab4f25526ba4c8dcf1bc8b94
......@@ -1594,7 +1594,7 @@ vtkImageData *vtkPDFContextDevice2D::PrepareImageData(vtkImageData *in)
vtkNew<vtkImageFlip> flip;
flip->SetInputData(in);
in->UnRegister(this);
flip->SetFilteredAxis(0); // x axis
flip->SetFilteredAxis(1); // y axis
flip->Update();
in = flip->GetOutput();
in->Register(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment