15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameters:<br />

Parameter Type Description<br />

CommandName String The command to retrieve.<br />

Method: ConvertImage<br />

Return: This returns a reference directly to the command item.<br />

Description: Converts a specified image into a file format requested by the client.<br />

The imgfmt element of the configuration data determines which graphic file<br />

formats are available in your system.<br />

See Also: ”imgfmt” on page 517<br />

This method differs from the SaveAs method in that it does not depend on the<br />

current image. Instead, it lets the client application or script quickly change any<br />

file’s format.<br />

Object: ”Image Editor Object”<br />

Parameters<br />

Parameter Type Description<br />

SrcImagePath String The path to the image to convert. If this is<br />

empty, the current image is converted<br />

and saved.<br />

DestImagePath String The location and name to which to save<br />

the image. If the file extension specified<br />

in this parameter does not match the<br />

format parameter, the extension is<br />

modified to match the format.<br />

Format String The format in which to save the image.<br />

See Also: ”Specifying Image Format” on<br />

page 523<br />

ColorDepth Long The depth of the color conversion.<br />

See Also: ”Specifying Color Depth” on<br />

page 523<br />

Remarks<br />

If an image is identified, it is loaded and saved to the given destination in the given<br />

format.<br />

See Also: ”Method: SaveAs” on page 92<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!