imagetopng.htm
Navigation: Language Reference > 13 - Built-in Functions >====== ImageToPng(convert image to PNG) ====== | |
ImageToPng( fileNameIn, [fileNameOut] )
fileNameIn | the name of the file to convert |
fileNameOut | (optional) the name of the PNG output file |
Convert any Clarion supported format image file to a PNG file, changing the fileName extension to PNG. Optionally supply a new name for the created file.
Requirements:
Create an instance of the ClaRunExtClass to call its methods.
distribute ClaRunExt.dll (requires that .Net 3.5 or higher is installed on target machines)
Example:
PROGRAM
MAP |
END |
INCLUDE('ClaRunExt.inc'),ONCE |
MyClaRun | ClaRunextClass !create instance of ClaRunExtClass |
CODE |
MyClaRun.ImageToPng('Lawnmower.bmp) !creates Lawnmower.png
MyClaRun.ImageToPng('PicnicTable.bmp', 'PicnicTblWithBench.png')
See Also:
imagetopng.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1