Show / Hide Table of Contents

Class InkItem

Inheritance
System.Object
InkItem
PressureInkItem
Namespace: pdftron.PDF.Model.Ink
Assembly: PDFViewCtrlTools.dll
Syntax
public class InkItem : Object

Constructors

InkItem(Int32, Int32, Single, Single, Boolean, PDFViewCtrl)

Declaration
public InkItem(int pageNumber, int color, float opacity, float baseThickness, bool isStylus, PDFViewCtrl pdfViewCtrl)
Parameters
Type Name Description
System.Int32 pageNumber
System.Int32 color
System.Single opacity
System.Single baseThickness
System.Boolean isStylus
pdftronprivate.PDF.PDFViewCtrl pdfViewCtrl

InkItem(IntPtr, JniHandleOwnership)

Declaration
protected InkItem(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type Name Description
System.IntPtr javaReference
Android.Runtime.JniHandleOwnership transfer

InkItem(String, IList<PointF>, IList<IList<PointF>>, Int32, Int32, Single, Single, Single, Boolean)

Declaration
public InkItem(string id, IList<PointF> currentActiveStroke, IList<IList<PointF>> finishedStrokes, int pageNumber, int color, float opacity, float baseThickness, float paintThickness, bool isStylus)
Parameters
Type Name Description
System.String id
System.Collections.Generic.IList<Android.Graphics.PointF> currentActiveStroke
System.Collections.Generic.IList<System.Collections.Generic.IList<Android.Graphics.PointF>> finishedStrokes
System.Int32 pageNumber
System.Int32 color
System.Single opacity
System.Single baseThickness
System.Single paintThickness
System.Boolean isStylus

Properties

BaseThickness

Declaration
public float BaseThickness { get; set; }
Property Value
Type Description
System.Single

Color

Declaration
public int Color { get; set; }
Property Value
Type Description
System.Int32

CurrentActiveStroke

Declaration
public IList CurrentActiveStroke { get; set; }
Property Value
Type Description
System.Collections.IList

FinishedStrokes

Declaration
public IList FinishedStrokes { get; set; }
Property Value
Type Description
System.Collections.IList

Id

Declaration
public string Id { get; set; }
Property Value
Type Description
System.String

IsStylus

Declaration
public bool IsStylus { get; set; }
Property Value
Type Description
System.Boolean

JniPeerMembers

Declaration
public override JniPeerMembers JniPeerMembers { get; }
Property Value
Type Description
Java.Interop.JniPeerMembers

Opacity

Declaration
public float Opacity { get; set; }
Property Value
Type Description
System.Single

PageNumber

Declaration
public int PageNumber { get; set; }
Property Value
Type Description
System.Int32

Paint

Declaration
public Paint Paint { get; set; }
Property Value
Type Description
Android.Graphics.Paint

PaintThickness

Declaration
public float PaintThickness { get; set; }
Property Value
Type Description
System.Single

PreviousStroke

Declaration
public IList PreviousStroke { get; set; }
Property Value
Type Description
System.Collections.IList

ShouldAnimateUndoRedo

Declaration
public bool ShouldAnimateUndoRedo { get; set; }
Property Value
Type Description
System.Boolean

ThresholdClass

Declaration
protected override IntPtr ThresholdClass { get; }
Property Value
Type Description
System.IntPtr

ThresholdType

Declaration
protected override Type ThresholdType { get; }
Property Value
Type Description
System.Type

Methods

AddPoint(Single, Single, Single, Int32)

Declaration
public virtual void AddPoint(float x, float y, float pressure, int action)
Parameters
Type Name Description
System.Single x
System.Single y
System.Single pressure
System.Int32 action

ClearCurrentActiveStroke()

Declaration
public virtual void ClearCurrentActiveStroke()

ConvPagePtToHorizontalScrollingPt(Single, Single, PDFViewCtrl)

Declaration
protected virtual float[] ConvPagePtToHorizontalScrollingPt(float x, float y, PDFViewCtrl pdfViewCtrl)
Parameters
Type Name Description
System.Single x
System.Single y
pdftronprivate.PDF.PDFViewCtrl pdfViewCtrl
Returns
Type Description
System.Single[]

Copy()

Declaration
public virtual InkItem Copy()
Returns
Type Description
InkItem

CreatePathFromCurrentActiveStroke(IList<PointF>, PDFViewCtrl, PointF)

Declaration
protected virtual Path CreatePathFromCurrentActiveStroke(IList<PointF> points, PDFViewCtrl pdfViewCtrl, PointF offset)
Parameters
Type Name Description
System.Collections.Generic.IList<Android.Graphics.PointF> points
pdftronprivate.PDF.PDFViewCtrl pdfViewCtrl
Android.Graphics.PointF offset
Returns
Type Description
Android.Graphics.Path

CreatePathFromFinishedStroke(Int32, PDFViewCtrl, PointF)

Declaration
protected virtual Path CreatePathFromFinishedStroke(int index, PDFViewCtrl pdfViewCtrl, PointF offset)
Parameters
Type Name Description
System.Int32 index
pdftronprivate.PDF.PDFViewCtrl pdfViewCtrl
Android.Graphics.PointF offset
Returns
Type Description
Android.Graphics.Path

Draw(Canvas, PDFViewCtrl, Matrix, PointF)

Declaration
public virtual void Draw(Canvas canvas, PDFViewCtrl pdfViewCtrl, Matrix transform, PointF offset)
Parameters
Type Name Description
Android.Graphics.Canvas canvas
pdftronprivate.PDF.PDFViewCtrl pdfViewCtrl
Android.Graphics.Matrix transform
Android.Graphics.PointF offset

GetPaint(PDFViewCtrl)

Declaration
public virtual Paint GetPaint(PDFViewCtrl pdfViewCtrl)
Parameters
Type Name Description
pdftronprivate.PDF.PDFViewCtrl pdfViewCtrl
Returns
Type Description
Android.Graphics.Paint

OnDown(Single, Single, Single)

Declaration
protected virtual void OnDown(float x, float y, float pressure)
Parameters
Type Name Description
System.Single x
System.Single y
System.Single pressure

OnMove(Single, Single, Single)

Declaration
protected virtual void OnMove(float x, float y, float pressure)
Parameters
Type Name Description
System.Single x
System.Single y
System.Single pressure

OnUp()

Declaration
protected virtual void OnUp()

Reset()

Declaration
public virtual void Reset()
In This Article
Back to top Generated by DocFX