src/org/tiefaces/components/websheet/utility/PicturesUtility.java
public static String generatePictureStyle(final Sheet sheet1,
			final FacesCell fcell, final Cell cell, final Picture pic) {

		ClientAnchor anchor = pic.getClientAnchor();
		if (anchor != null) {
			AnchorSize anchorSize = getAnchorSize(sheet1, fcell, cell,
					anchor);
			if (anchorSize != null) {
				return "MARGIN-LEFT:"
						+ String.format("%.2f", anchorSize.getPercentLeft())
						+ "%;MARGIN-TOP:"
						+ String.format("%.2f", anchorSize.getPercentTop())
						+ "%;width:" + String.format("%.2f",
								anchorSize.getPercentWidth())
						+ "%;";
			}
		}
		return "";

	}
public static String generatePictureStyle(final Sheet sheet1,
			final FacesCell fcell, final Cell cell, final Picture pic) {

		ClientAnchor anchor = pic.getClientAnchor();
		if (anchor != null) {
			AnchorSize anchorSize = getAnchorSize(sheet1, fcell, cell,
					anchor);
			if (anchorSize != null) {
				return "MARGIN-LEFT:"
						+ String.format("%.2f", anchorSize.getPercentLeft())
						+ "%;MARGIN-TOP:"
						+ String.format("%.2f", anchorSize.getPercentTop())
						+ "%;width:" + String.format("%.2f",
								anchorSize.getPercentWidth())
						+ "%;";
			}
		}
		return "";

	}
Generate picture style.

@param sheet1
the sheet 1
@param fcell
the fcell
@param cell
the cell
@param pic
the pic
@return the string