/
ConvertPadResourceImage

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

GetPadResourceFileList

Sample

C#
string source = @"C:\TEMP\Image1.png";
string destination = @"C:\TEMP\Image1.soi";
int size = SigDev.ConvertPadResourceImage(source, ref destination, 0);

Related content

DownloadPadResourceFileByName
DownloadPadResourceFileByName
More like this
UploadPromoImage
UploadPromoImage
More like this
UploadPadResourceFileByName
UploadPadResourceFileByName
More like this
ReadPreviewImage
ReadPreviewImage
More like this
SetSimpleDialogResourceImage
SetSimpleDialogResourceImage
More like this
GetPadResourceFileList
GetPadResourceFileList
More like this