dotnet / dotnet/winforms

Missing .NET Framework Methods

Open
#12,461 4 comments 0 reactions 1 assignee Claimed by @JeremyKuhne View on GitHub
area-System.Drawing
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### Type of issue

Code doesn't work

### Description

I have older third party dlls that are calling methods of System.Drawing.Bitmap, like FromGDIplus(), which are missing in the System.Drawing.Common nuget package for .NET 8. Is there some reason the Bitmap class is not inheritable and not partial? I have been trying to figure out a way to add missing methods myself, but I cannot modify the calling dll to use a custom class. It has to be in the System.Drawing.Bitmap class. Since the method is static, I cannot use an extension method. Since the method doesn't exist, I cannot redirect. It would be nice if all the functionality from .NET Framework was ported to the latest .NET. Is there anything I can do or am I stuck on .NET Framework forever with these dlls?

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.drawing.bitmap?view=windowsdesktop-8.0&viewFallbackFrom=net-8.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Drawing/Bitmap.xml

### Document Version Independent Id

dd2df450-62f2-6761-db08-bc4fd8bb1907

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.