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 android.graphics.PointF 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 PointF[] getPoints()

Gets points for the IInkLine android.graphics.PointF 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();
     android.graphics.PointF[] points = traces[0].getPoints();
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: android.graphics.PointF[]