The WPImage class defines API properties that operate on images you insert in a document. The properties are listed below in the following categories:
void setImageSource(String url)
String getImageSource()
/* If the image can't be loaded, display this string instead. */
void setAlternate(String)
String getAlternate()
void setBorderWidth(int) /* Specify 0 for no border. */
int getBorderWidth()
void setWidth(int)
int getWidth()
void setHeight(int)
int getHeight()
void setVSpace(int) /* Sets the amount of space above and below the image. */
int getVSpace() /* Returns the amount of space above and below the image. */
void setHSpace(int) /* Sets the amount of space to the left and right of the image. */
int getHSpace() /* Returns the amount of space to the left and right of the image. */
/* Align is assigned one of the following values: * left: The image is aligned with the left margin. * right: The image is aligned with the right margin. * top: The image flows with the text, and the text aligns with the top of the image. * middle: The image flows with the text, and the text aligns with middle of the image. * bottom: The image flows with the text, and the text aligns with bottom of the image. */
void setAlign(String align)
String getAlign()