I found a sample in the source forum that displays JPG and other images using the FreeImage library and it seems to work pretty well, but it uses SDK style coding. Is it possible to get this into a DDT GRAPHIC CONTROL?
I tried using the handle returned by FreeImage_Load with GRAPHIC COPY to copy it into a DDT GRAPHIC BITMAP and then to use GRAPHIC STRETCH to move that into the GRAPHIC CONTROL, but that didn't work. Actually it acted like it was working and gave me a nearly black GRAPHIC CONTROL. I would have expected it to stay white but I don't know where the black is coming from.
I plan to work on this some more in the morning and if I don't get anywhere I'll clean up the code and post it. It's the code I got with the sample that I've added my own lines to and I haven't removed a lot of now extraneous stuff so I hate posting that till I clean it up a little.
Any thoughts will be appreciated.
Barry
I tried using the handle returned by FreeImage_Load with GRAPHIC COPY to copy it into a DDT GRAPHIC BITMAP and then to use GRAPHIC STRETCH to move that into the GRAPHIC CONTROL, but that didn't work. Actually it acted like it was working and gave me a nearly black GRAPHIC CONTROL. I would have expected it to stay white but I don't know where the black is coming from.
I plan to work on this some more in the morning and if I don't get anywhere I'll clean up the code and post it. It's the code I got with the sample that I've added my own lines to and I haven't removed a lot of now extraneous stuff so I hate posting that till I clean it up a little.
Any thoughts will be appreciated.
Barry
Comment