04-05-2013, 05:46 AM
Bugs:
GdipLoadPictureFile unknown. Need link.
GetImageSize unknown. Need code or link.
id(15 hDlg). What is 15?
Bitmap handle management:
1. Does not delete the source bitmap. Use flag LR_COPYDELETEORG with CopyImage.
2. STM_SETIMAGE does not delete previous bitmap. DeleteObject SendMessage(...).
3. The __GdiHandle-- line supports just single bitmap in thread. Maybe use array...
Optimizations:
GetImageSize - use bitmap handle, not file. Example:
Function GetBitmapRect
GdipLoadPictureFile unknown. Need link.
GetImageSize unknown. Need code or link.
id(15 hDlg). What is 15?
Bitmap handle management:
1. Does not delete the source bitmap. Use flag LR_COPYDELETEORG with CopyImage.
2. STM_SETIMAGE does not delete previous bitmap. DeleteObject SendMessage(...).
3. The __GdiHandle-- line supports just single bitmap in thread. Maybe use array...
Optimizations:
GetImageSize - use bitmap handle, not file. Example:
Function GetBitmapRect