dotnet / dotnet/dotnet-api-docs
Code Example Error
Open
area-System.Drawing
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### Type of issue
Code doesn't work
### Description
[Enter feedback here]
The code "Image image1 = Image.FromFile("c:\\FakePhoto1.jpg");" causes an error for "Image"
What is the correction?

### Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.drawing.image.fromfile?view=net-8.0
### Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Drawing/Image.xml
### Document Version Independent Id
67f9367d-e5e7-a03d-af7d-07ae9b070487
### Article author
@dotnet-bot
Contributor guide
Assessment
This issue has not been assessed yet.