| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Gets or sets the brush color for a line.
|
int |
getInkEffect()
Gets the ink effect type (e.g., Galaxy, Gold, Silver) that defines the visual style of the ink stroke.
|
java.awt.geom.Dimension2D |
getSize()
Gets or sets the brush size for a line in points.
|
void |
setColor(java.awt.Color value)
Gets or sets the brush color for a line.
|
void |
setSize(java.awt.geom.Dimension2D value)
Gets or sets the brush size for a line in points.
|
public final java.awt.Color getColor()
Gets or sets the brush color for a line.
Example:Presentation pres = new Presentation("pres.pptx"); try { IInk ink = (IInk)pres.getSlides().get_Item(0).getShapes().get_Item(0); IInkTrace[] traces = ink.getTraces(); IInkBrush brush = traces[0].getBrush(); Color brushColor = brush.getColor(); brush.setColor(Color.RED); } finally { if (pres != null) pres.dispose(); }
public final void setColor(java.awt.Color value)
Gets or sets the brush color for a line.
Example:Presentation pres = new Presentation("pres.pptx"); try { IInk ink = (IInk)pres.getSlides().get_Item(0).getShapes().get_Item(0); IInkTrace[] traces = ink.getTraces(); IInkBrush brush = traces[0].getBrush(); Color brushColor = brush.getColor(); brush.setColor(Color.RED); } finally { if (pres != null) pres.dispose(); }
public final java.awt.geom.Dimension2D getSize()
Gets or sets the brush size for a line in points.
Example:Presentation pres = new Presentation("pres.pptx"); try { IInk ink = (IInk)pres.getSlides().get_Item(0).getShapes().get_Item(0); IInkTrace[] traces = ink.getTraces(); IInkBrush brush = traces[0].getBrush(); Dimension2D brushSize = brush.getSize(); brush.setSize(new Dimension(5, 10)); } finally { if (pres != null) pres.dispose(); }
public final void setSize(java.awt.geom.Dimension2D value)
Gets or sets the brush size for a line in points.
Example:Presentation pres = new Presentation("pres.pptx"); try { IInk ink = (IInk)pres.getSlides().get_Item(0).getShapes().get_Item(0); IInkTrace[] traces = ink.getTraces(); IInkBrush brush = traces[0].getBrush(); Dimension2D brushSize = brush.getSize(); brush.setSize(new Dimension(5, 10)); } finally { if (pres != null) pres.dispose(); }
public final int getInkEffect()
Gets the ink effect type (e.g., Galaxy, Gold, Silver) that defines the visual style of the ink stroke.
The value is parsed from the brush property "inkEffects". If no recognized effect is specified,
InkEffectType.NotDefined is returned.
getInkEffect in interface IInkBrushCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.