Nikolay Sivov : gdiplus: Add a helper to check for metafile graphics context.