I recently upgraded from version 1.8 to 2.0 and so far, all has gone well
except for a TImageList.
What I've tried to do is read in a long, skinny BMP (91 high x 5025 wide) into MyBMP. Then I want to be able to pluck from the ImageList a smaller, 67 x 91 size BMP based on an index number. This approach worked flawlessly in all earlier versions of Pascal.
MyBMP := tbitmap.Create;
MyBMP.LoadFromResourceName(HInstance, 'carddeck'); // verified with the debugger as being 91 X 5025
MyBMP.PixelFormat := pf32bit;
w := 67; // each card image width
h := 91;
MyList := timagelist.CreateSize(w, h);
w := MyList.Add(MyBMP, nil);
I expected w to be 75, but it's 0, and all my images are blank. Is this an easy fix for Lazarus or do I need to roll my own? More likely I've done something I shouldn't have.
When I upgraded from 1.8 to 2.0 I also switched from 32-bit to 64-bit. In the past I ran a 32-bit version of Lazarus on my 64 bit Windows PC. Now I've installed the 64-bit version of Lazarus, but I still want to create 32-bit apps. Could this be the source of my problems?