Convert JPG imgage to bmp image in l4g Code

Posted by LegacyUser on 28-Feb-2006 03:59

Hi evry one,

My probleme is :

I have to convert a jpg image to a bmp image in progress l4g code. For exemple

C:\test.jpg in code

i use the os-command :

ASSIGN wCommand = "C:\WINDOWS\system32\mspaint.exe" + " " + SUBSTRING(test,1,LENGTH(test) - 3) + "BMP".

OS-COMMAND SILENT VALUE(wCommand) .

when i run my application. I have one message from mspaint.exe that a file test.jpg is not extiste, im sure that file exist.

Can some one helps me or tell me how to use LOAD-IMAGE for a jpg image.

All Replies

Posted by svi on 28-Feb-2006 16:58

Using mspaint.exe may be an option, but I think it will be more complicated that it has to. I'd suggest browsing the web for jpg to bmp conversion utilities. I think I've seen utlilites (some of them shareware/freeware if you're comfortable using these type of utils rather than commercial ones) that have command-line interfaces, thus they are much easier to use for what need, and invoking them from the 4GL.

Hope it helps,

Salvador

Posted by LegacyUser on 01-Mar-2006 03:05

Thank you very much Salvador,

That's i did and it was ok. Do you know if there are a possibility to load a JPG image by the load-image fonction and if it's , is that possible with a 8.3A version.

Posted by svi on 01-Mar-2006 11:20

As far as I can remember it is not possible in V8. LOAD-IMAGE was enhanced in V9 to allow for additional image file types.

This thread is closed