I am sure this is simple, but I cannot get it to work.
I have a TImage32 on my form, called "image". I have a button which does the following when I click:
if not OpenDialog.Execute() then exit;
image.Bitmap.LoadFromFile(Opendialog.FileName);
The image displays, but it is horribly distorted. See the a screen shot of part of the Good Image and a screen shot of the same part of the Bad Image. I include the actual full PNG file, in case that will be useful.
Notice that in the Bad Image 1) there are vertical white bars every other column, and 2) the image is duplicated on the right side. It is almost as if it is grabbing every other pixel on the left and every other other pixel on the right. The image is in PNG format.
I have tried all of the values for image.ScaleMode, and the displayed images all look the same. I've used TImage32 on and off for two decades, and I've never had this kind of problem before.
What am I missing? Lazarus 3.2, Windows 11
Thanks!
Jon