Commit 37697789 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Implement GdipCreateMetafileFromStream.

parent 6135a3fa
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment