Skip to content

Bitmap.Save 'A generic error occurred in GDI+ #31367

@grahamehorner

Description

@grahamehorner

when calling bitmap.Save with a file path where the folder doesn't exist the save method throws a
System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.'

IMHO the the folder should be created (to match folder file operations) or throw an expection of DirectoryNotFoundException

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Drawinghelp wanted[up-for-grabs] Good issue for external contributorsuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions