WolfEngine.Vector2f.ToPoint C# (CSharp) Method

ToPoint() public method

public ToPoint ( ) : PointF
return System.Drawing.PointF
        public PointF ToPoint()
        {
            return new PointF(this.x, this.y);
        }

Usage Example

コード例 #1
0
        public Bitmap TransformedTexture()
        {
            YLScsDrawing.Imaging.Filters.FreeTransform filter = new YLScsDrawing.Imaging.Filters.FreeTransform();

            filter.Bitmap = WallTexture;

            // assign four corners of the new perspective shape
            //  1 ----------------- 2
            //  |                   |
            //  4 ----------------- 3

            filter.VertexLeftTop     = Point1.ToPoint();
            filter.VertexTopRight    = Point2.ToPoint();
            filter.VertexBottomLeft  = Point4.ToPoint();
            filter.VertexRightBottom = Point3.ToPoint();

            return(filter.Bitmap);
        }
All Usage Examples Of WolfEngine.Vector2f::ToPoint