[PATCH 2/6] gdiplus: Add helper for saving path objects in metafile

Dmitry Timoshkov dmitry at baikal.ru
Thu Jul 13 05:17:36 CDT 2017


Piotr Caban <piotr at codeweavers.com> wrote:

> +typedef struct EmfPlusPath
> +{
> +    DWORD Version;
> +    DWORD PathPointCount;
> +    DWORD PathPointFlags;
> +    /* PathPoints[] */
> +    /* PathPointTypes[] */
> +    /* AlignmentPadding */
> +    BYTE data[1];
> +} EmfPlusPath;
...
> +static GpStatus METAFILE_AddPathObject(GpMetafile *metafile, GpPath *path, DWORD *id)
> +{
...
> +    object_record->ObjectData.path.Version = 0xDBC01002;
> +    object_record->ObjectData.path.PathPointCount = path->pathdata.Count;
> +    object_record->ObjectData.path.PathPointFlags = 0;

This looks very similar to the buffer format returned by GdipGetRegionData(),
is it possible to use that API instead of a custom generator?

-- 
Dmitry.



More information about the wine-devel mailing list