XpsContentElement

Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsElement, com.aspose.xps.XpsHyperlinkElement

public abstract class XpsContentElement extends XpsHyperlinkElement

Incapsulates features of XPS content elements: Canvas, Path and Glyphs.

Methods

MethodDescription
getRenderTransform()Returns the affine transformation matrix establishing a new coordinate frame for all attributes of the element and for all child elements (if any).
setRenderTransform(XpsMatrix value)Sets the affine transformation matrix establishing a new coordinate frame for all attributes of the element and for all child elements (if any).
getClip()Returns the path geometry limiting the rendered region of the element.
setClip(XpsPathGeometry value)Sets the path geometry limiting the rendered region of the element.
getOpacity()Returns the value defining the uniform transparency of the element.
setOpacity(float value)Sets the value defining the uniform transparency of the element.
getOpacityMask()Returns the brush specifying a mask of alpha values that is applied to the element in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
setOpacityMask(XpsBrush value)Sets the brush specifying a mask of alpha values that is applied to the element in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.

getRenderTransform()

public XpsMatrix getRenderTransform()

Returns the affine transformation matrix establishing a new coordinate frame for all attributes of the element and for all child elements (if any).

Returns: XpsMatrix - The affine transformation matrix.

setRenderTransform(XpsMatrix value)

public void setRenderTransform(XpsMatrix value)

Sets the affine transformation matrix establishing a new coordinate frame for all attributes of the element and for all child elements (if any).

Parameters:

ParameterTypeDescription
valueXpsMatrixThe affine transformation matrix.

getClip()

public XpsPathGeometry getClip()

Returns the path geometry limiting the rendered region of the element.

Returns: XpsPathGeometry - The path geometry limiting the rendered region of the element.

setClip(XpsPathGeometry value)

public void setClip(XpsPathGeometry value)

Sets the path geometry limiting the rendered region of the element.

Parameters:

ParameterTypeDescription
valueXpsPathGeometryThe path geometry limiting the rendered region of the element.

getOpacity()

public float getOpacity()

Returns the value defining the uniform transparency of the element.

Returns: float - The value defining the uniform transparency of the element.

setOpacity(float value)

public void setOpacity(float value)

Sets the value defining the uniform transparency of the element.

Parameters:

ParameterTypeDescription
valuefloatThe value defining the uniform transparency of the element.

getOpacityMask()

public XpsBrush getOpacityMask()

Returns the brush specifying a mask of alpha values that is applied to the element in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.

Returns: XpsBrush - The brush specifying a mask.

setOpacityMask(XpsBrush value)

public void setOpacityMask(XpsBrush value)

Sets the brush specifying a mask of alpha values that is applied to the element in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.

Parameters:

ParameterTypeDescription
valueXpsBrushThe brush specifying a mask.