GSoC Weekly Update: Replacing Slideshow Metafile Rendering with Primitives
Shardul Vikram Singh
shardulvikrm at gmail.com
Mon Jun 16 19:48:22 UTC 2025
Hi everyone,
Here's a quick summary of what I worked on last week.
I was able to render the static (non-animated) content of slides to the
slideshow screen after some debugging.
I created primitives from slideshow shapes and processed them using
CairoPixelProcessor2D, which uses the Cairo surface I extracted from the
canvas. At first, nothing showed up because I was using the wrong
transformation, which scaled everything incorrectly. To check if I had the
right Cairo surface, I used low-level Cairo commands to draw lines on the
screen, and that helped confirm it.
I then tried modifying CairoPixelProcessor2D, but couldn't get it to render
shapes. After that, I looked into how the metafile renderer generates
primitives and used the ObjectContactOfObjListPainter class to try a
similar approach. That made the shapes show up, but their sizes and
positions were off depending on the canvas type.
After some inspection, I figured out that the issue was due to using the
wrong transformation. After fixing that using the one from ViewLayer,
everything started rendering correctly.
Now I’m working on sprites and animated shapes which looks like a much more
interesting challenge.
That’s it for now.
Best,
Shardul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250617/475914b1/attachment.htm>
More information about the LibreOffice
mailing list