Ejemplo n.º 1
0
    internal static PFRectF PFRectF(Rect r)
    {
        var origin      = new PFVector2F(r.xMin, r.yMin);
        var lower_right = new PFVector2F(r.xMax, r.yMax);

        return(new PFRectF(origin, lower_right));
    }
Ejemplo n.º 2
0
    public void SetCurrentTransform(Matrix4x4 matrix)
    {
        EnsureHandleIsValid();
        var pfMatrix = new PFMatrix2x2F(
            matrix.m00,
            matrix.m01,
            matrix.m10,
            matrix.m11
            );
        var pfVector    = new PFVector2F(matrix.m03, matrix.m13);
        var pfTransform = new PFTransform2F(pfMatrix, pfVector);

        PF.PFCanvasSetCurrentTransform(handle, ref pfTransform);
    }
Ejemplo n.º 3
0
 internal static extern void PFBuildOptionsSetDilation(IntPtr /* BuildOptions */ options, ref PFVector2F dilation);
Ejemplo n.º 4
0
 internal PFRectF(PFVector2F origin, PFVector2F lower_right)
 {
     this.origin      = origin;
     this.lower_right = lower_right;
 }
Ejemplo n.º 5
0
 internal static extern void PFPathArcTo(IntPtr /* Path2D */ path, ref PFVector2F ctrl, ref PFVector2F to, float radius);
Ejemplo n.º 6
0
 internal static extern void PFPathEllipse(IntPtr /* Path2D */ path, ref PFVector2F center, ref PFVector2F axes, float rotation, float start_angle, float end_angle);
Ejemplo n.º 7
0
 internal static extern void PFPathBezierCurveTo(IntPtr /* Path2D */ path, ref PFVector2F ctrl0, ref PFVector2F ctrl1, ref PFVector2F to);
Ejemplo n.º 8
0
 internal static extern void PFPathArc(IntPtr /* Path2D */ path, ref PFVector2F center, float radius, float start_angle, float end_angle, byte direction);
Ejemplo n.º 9
0
 internal static extern void PFPathQuadraticCurveTo(IntPtr /* Path2D */ path, ref PFVector2F ctrl, ref PFVector2F to);
Ejemplo n.º 10
0
 internal static extern void PFPathLineTo(IntPtr /* Path2D */ path, ref PFVector2F to);
Ejemplo n.º 11
0
 internal static extern void PFCanvasStrokeText(IntPtr /* CanvasRenderingContext2D */ canvas, IntPtr /* c_char */ str, UIntPtr string_len, ref PFVector2F position);
Ejemplo n.º 12
0
 internal static extern IntPtr /* CanvasRenderingContext2D */ PFCanvasCreate(IntPtr /* CanvasFontContext */ font_context, ref PFVector2F size);
Ejemplo n.º 13
0
 internal PFTransform2F(PFMatrix2x2F matrix, PFVector2F vector)
 {
     this.matrix = matrix;
     this.vector = vector;
 }