gdiplus: Implement GdipCreateMetafileFromFile.

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:46 -05:00 committed by Alexandre Julliard
parent f60d2b63cc
commit b1e77d3fc8
1 changed files with 16 additions and 2 deletions

View File

@ -1922,8 +1922,22 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmfFile(GDIPCONST WCHAR *file,
GpStatus WINGDIPAPI GdipCreateMetafileFromFile(GDIPCONST WCHAR *file,
GpMetafile **metafile)
{
FIXME("(%p, %p): stub\n", file, metafile);
return NotImplemented;
GpStatus status;
IStream *stream;
TRACE("(%p, %p)\n", file, metafile);
if (!file || !metafile) return InvalidParameter;
*metafile = NULL;
status = GdipCreateStreamOnFile(file, GENERIC_READ, &stream);
if (status == Ok)
{
status = GdipCreateMetafileFromStream(stream, metafile);
IStream_Release(stream);
}
return status;
}
GpStatus WINGDIPAPI GdipCreateMetafileFromStream(IStream *stream,