gdiplus: Implement GdipCreateMetafileFromStream.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2016-09-09 13:42:43 -05:00 committed by Alexandre Julliard
parent 6135a3fa93
commit 3769778917
1 changed files with 15 additions and 2 deletions

View File

@ -1917,8 +1917,21 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromFile(GDIPCONST WCHAR *file,
GpStatus WINGDIPAPI GdipCreateMetafileFromStream(IStream *stream,
GpMetafile **metafile)
{
FIXME("(%p, %p): stub\n", stream, metafile);
return NotImplemented;
GpStatus stat;
TRACE("%p %p\n", stream, metafile);
stat = GdipLoadImageFromStream(stream, (GpImage **)metafile);
if (stat != Ok) return stat;
if ((*metafile)->image.type != ImageTypeMetafile)
{
GdipDisposeImage(&(*metafile)->image);
*metafile = NULL;
return GenericError;
}
return Ok;
}
GpStatus WINGDIPAPI GdipSetMetafileDownLevelRasterizationLimit(GpMetafile *metafile,