Class: GenIcon

GenIcon

<abstract> new GenIcon()

Generate icon super class.
Source:

Methods

convert(src, dest, width, height, options, clbk)

Convert an image file. It converts the source image file to the dest image file. The dest file image size is (width, height).
Parameters:
Name Type Description
src String source image file path.
dest String destination image file path.
width Number destination image width.
height Number destination image height.
options Object opitons.
clbk function callback function.
Source:

generate(clbk)

Generate the icon files.
Parameters:
Name Type Description
clbk function callback function.
Source:

<abstract> generateAmazonFireOSIcon(name, src, platforms, clbk)

Generate Amazon Fire OS Icon.

Parameters:
Name Type Description
name String projectn name.
src String source image path.
platforms String platforms directory path.
clbk function callback function.
Source:

<abstract> generateAndroidIcon(name, src, platforms, clbk)

Generate Android Icon.

Parameters:
Name Type Description
name String projectn name.
src String source image path.
platforms String platforms directory path.
clbk function callback function.
Source:

<abstract> generateFirefoxOSIcon(name, src, platforms, clbk)

Generate Firefox OS Icon.

generateFirefoxOSIcon generates the Firefox OS icon image files. Thats images are trimed as circle automatically.
Parameters:
Name Type Description
name String projectn name.
src String source image path.
platforms String platforms directory path.
clbk function callback function.
Source:

<abstract> generateIOSIcon(name, src, platforms, clbk)

Generate iOS Icon.

generateIOSIcon generates the iOS icon image files. Thats images have round corner automatically.
Parameters:
Name Type Description
name String project name.
src String source image path.
platforms String platforms directory path.
clbk function callback function.
Source:

mkdir(dir, clbk)

Make the directory recursively.
Parameters:
Name Type Description
dir String directory path.
clbk function callback function.
Source:

prepare(clbk)

Prepare generating icon files. It reads www/config.xml and walk platforms/ direcotry. After that, it sets class members as generating property.
Parameters:
Name Type Description
clbk function callback function.
Source:

resize(src, dests, options, clbk)

Resize to the image files. It resize the source image file to the destination image files.
Parameters:
Name Type Description
src String source image file path.
dests String destination image file set.
options Object opitons.
clbk function callback function.
Source: