[SDK][INCLUDE] Improve gdiplusgraphics.h (#2222)

CORE-16585
This commit is contained in:
Katayama Hirofumi MZ 2020-01-01 19:10:47 +09:00 committed by GitHub
parent 91f3c8f81a
commit 265a890d7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 81 additions and 45 deletions

View file

@ -242,6 +242,13 @@ class Metafile : public Image
{
return static_cast<GpMetafile *>(nativeImage);
}
// get native
friend inline GpMetafile *&
getNat(const Metafile *metafile)
{
return reinterpret_cast<GpMetafile *&>(const_cast<Metafile *>(metafile)->nativeImage);
}
};
#endif /* _GDIPLUSMETAFILE_H */