ConvertPadResourceImage
Delphi (DLL)
function ConvertPadResourceImage(SourceFile: PAnsiChar; Destination: var PAnsiChar; WParam:integer): integer; register;
C/C++ (DLL)
int _stdcall ConvertPadResourceImage(char* Source; char* Destination, long WParam);
ActiveX
HRESULT _stdcall ConvertPadResourceImage([in] BSTR Source, [in, out] BSTR* Destination, [in] long WParam, [out, retval] long* Result);
Description
ConvertPadResourceImage returns converted size of the image, which can be used to compare it with existing resources on the device.
Arguments
Source
Path of the image you want to convert
Destination
Destination Path to the converted image. The resource file will be saved as SOI, which is the standard StepOver Image format for images.
WParm
not used now.
Return value
ConvertPadResourceImage returns the file size of the converted Image in bytes
See also
Sample
string source = @"C:\TEMP\Image1.png"; string destination = @"C:\TEMP\Image1.soi"; int size = SigDev.ConvertPadResourceImage(source, ref destination, 0);