Class Ink
[Guid("b499923b-7029-478f-a8b3-432c7c5f5312")]
public class Ink : Resource
- Inheritance
-
Ink
- Inherited Members
Constructors
Ink(DeviceContext2, InkPoint)
Initializes a new instance of the Ink.
public Ink(DeviceContext2 context2, InkPoint startPoint)
Parameters
context2
DeviceContext2startPoint
InkPoint
Ink(nint)
public Ink(nint nativePtr)
Parameters
nativePtr
nint
Properties
SegmentAtEnd
Updates the last segment in this ink object with new control points.
public InkBezierSegment SegmentAtEnd { set; }
Property Value
SegmentCount
Returns the number of segments in this ink object.
public int SegmentCount { get; }
Property Value
StartPoint
Retrieves or sets the starting point for this ink object.
public InkPoint StartPoint { get; set; }
Property Value
Methods
AddSegments(InkBezierSegment[], int)
Adds the given segments to the end of this ink object.
public void AddSegments(InkBezierSegment[] segments, int segmentsCount)
Parameters
segments
InkBezierSegment[]A reference to an array of segments to be added to this ink object.
segmentsCount
intThe number of segments to be added to this ink object.
GetBounds(InkStyle, RawMatrix3x2?, out RawRectangleF)
Retrieve the bounds of the geometry, with an optional applied transform.
public void GetBounds(InkStyle inkStyle, RawMatrix3x2? worldTransform, out RawRectangleF bounds)
Parameters
inkStyle
InkStyleThe ink style to be used in determining the bounds of this ink object.
worldTransform
RawMatrix3x2?The world transform to be used in determining the bounds of this ink object.
bounds
RawRectangleFWhen this method returns, contains the bounds of this ink object.
GetSegments(int, InkBezierSegment[], int)
Retrieves the specified subset of segments stored in this ink object.
public void GetSegments(int startSegment, InkBezierSegment[] segments, int segmentsCount)
Parameters
startSegment
intThe index of the first segment in this ink object to retrieve.
segments
InkBezierSegment[]When this method returns, contains a reference to an array of retrieved segments.
segmentsCount
intThe number of segments to retrieve. Note that segmentsCount must be less than or equal to the number of segments in the ink object minus startSegment.
RemoveSegmentsAtEnd(int)
Removes the given number of segments from the end of this ink object.
public void RemoveSegmentsAtEnd(int segmentsCount)
Parameters
segmentsCount
intThe number of segments to be removed from the end of this ink object. Note that segmentsCount must be less or equal to the number of segments in the ink object.
SetSegments(int, InkBezierSegment[], int)
Updates the specified segments in this ink object with new control points.
public void SetSegments(int startSegment, InkBezierSegment[] segments, int segmentsCount)
Parameters
startSegment
intThe index of the first segment in this ink object to update.
segments
InkBezierSegment[]A reference to the array of segment data to be used in the update.
segmentsCount
intThe number of segments in this ink object that will be updated with new data. Note that segmentsCount must be less than or equal to the number of segments in the ink object minus startSegment.
StreamAsGeometry(InkStyle, RawMatrix3x2?, float, SimplifiedGeometrySink)
Retrieves a geometric representation of this ink object.
public void StreamAsGeometry(InkStyle inkStyle, RawMatrix3x2? worldTransform, float flatteningTolerance, SimplifiedGeometrySink geometrySink)
Parameters
inkStyle
InkStyleThe ink style to be used in determining the geometric representation.
worldTransform
RawMatrix3x2?The world transform to be used in determining the geometric representation.
flatteningTolerance
floatThe flattening tolerance to be used in determining the geometric representation.
geometrySink
SimplifiedGeometrySinkThe geometry sink to which the geometry representation will be streamed.
Operators
explicit operator Ink(nint)
public static explicit operator Ink(nint nativePtr)
Parameters
nativePtr
nint