Piotr Caban piotr@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?