15,908,634 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Bo Vistisen 2023 (Top 1 by date)
Bo Vistisen 2023
22-Dec-23 7:25am
View
Thank you Richard.
I can boil it down to only one line of code!
In VB: Dim bmpFoto As New System.Drawing.Bitmap(FullPathFilename)
I am running Windows 11 Home 23H2 from which I guess the Bitmap function comes from.
I have compiled my solution to .NET framework 4.0 and for 4.6.1.
My test is simple. From my smartphone I uploaded a picture to the desktop. It was taken in 3264x2488 and let us call this horizontal. Then I turned it 90 degrees and saves it as a 2488x3264 vertical copy. As I said, screen and curser showes the correct thumbnails and sizes.
Trying to read the vertical with Bitmap it keep given me a picture with the original horizontal size. I also tried it on a Windows 10 Home 22H2 with the same result.
All my computers is slowly but surely updated by Microsoft. Last correct version was, as I remember, created on a Windows 10 in VS2019 using .NET 4.0.
But where is this error?