InkTrace

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IInkTrace

public class InkTrace implements IInkTrace

Represents an Trace object. A Trace element is used to record the data captured by the digitizer. It contains a sequence of points encoded according to the specification given by the InkTraceFormat object.

Methods

MethodDescription
getBrush()Gets Brush for the IInkLine IInkBrush Read-only.
getPoints()Gets points for the IInkLine java.awt.geom.Point2D.Float Read-only.

getBrush()

public final IInkBrush getBrush()

Gets Brush for the IInkLine IInkBrush Read-only.


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();
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: IInkBrush

getPoints()

public final Point2D.Float[] getPoints()

Gets points for the IInkLine java.awt.geom.Point2D.Float Read-only.


Example:
 
 Presentation pres = new Presentation("pres.pptx");
 try {
     IInk ink = (IInk)pres.getSlides().get_Item(0).getShapes().get_Item(0);
     IInkTrace[] traces = ink.getTraces();
     Point2D.Float[] points = traces[0].getPoints();
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: java.awt.geom.Point2D.Float[]