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