Re: How to get a bitmap of page or shape in a unit test?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Regina,

On Tue, Feb 26, 2019 at 12:25:38AM +0100, Regina Henschel <rb.henschel@xxxxxxxxxxx> wrote:
> But the content of 'myfirstmetafile.xml' has no shape, but only the page.
> Background color and size of the page is correct.
> [Of cause, the file 'myfirstmetafile.xml' does not belong to a final
> solution.]
> 
> The problem is similar. I do not get the shape.

Oh, interesting. There is a GDIMetaFile::Write() to write a .svm file
for an in-memory GDIMetaFile (you can simply open that in Draw later). I
would try if writing to .svm has the shape you are interested in or not.

Depending on that, either the XML dumper for GDIMetaFile needs extending
or simply the preview metafile misses some content -- and then fixing
that would be nice.

(Or just do the same using the UI: open the document in question, close
it, and see the preview metafile in the start center.)

Regards,

Miklos

Attachment: signature.asc
Description: Digital signature

_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux