How to load BMP by FreeImage.DLL ?

Moderator: Enrico Maria Giordano

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

How to load BMP by FreeImage.DLL ?

Post by dutch »

Dear All,
I would like to load BMP file by FreeImage.DLL instead of TImage. I got the example for SOURCE CODE not for RESOURCE

My old code.
DEFINE DIALOG oDlg RESOURCE 'TEST'

REDEFINE IMAGE oImg ID 11 OF oDlg SCROLL
oImg:Progress( .F. )

ACTIVATE DIALOG oDlg CENTER ;
ON PAINT (oImg:LoadBmp('TEST.BMP')) RESIZE16

Best regards,
Dutch
Post Reply