gdiplus: Implement GdipCreateMetafileFromStream.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6135a3fa93
commit
3769778917
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue