当前位置: 首页>>代码示例>>C#>>正文


C# Point2I._getX方法代码示例

本文整理汇总了C#中platform.include.Point2I._getX方法的典型用法代码示例。如果您正苦于以下问题:C# Point2I._getX方法的具体用法?C# Point2I._getX怎么用?C# Point2I._getX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在platform.include.Point2I的用法示例。


在下文中一共展示了Point2I._getX方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: _normalPoint

 public Point2I _normalPoint(Point2I nPoint)
 {
     int width_ = mWidth * 2 - 3;
     int height_ = mHeight * 3 - 3;
     Point2I point_ = new Point2I(nPoint);
     int x_ = point_._getX();
     if (x_ < 3)
     {
         point_._setX(3);
     }
     if (x_ > width_)
     {
         point_._setX(width_);
     }
     int y_ = point_._getY();
     if (y_ < 3)
     {
         point_._setY(3);
     }
     if (y_ > height_)
     {
         point_._setY(height_);
     }
     return point_;
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:25,代码来源:ScreenSingleton.cs

示例2: Rect2I

        public Rect2I(Point2I nPoint, Size2I nSize)
        {
            Point2I point_ = new Point2I();
            point_._setX(nPoint._getX() + nSize._getWidth());
            point_._setY(nPoint._getY() + nSize._getHeight());

            __tuple<Point2I, Point2I> tuple_ = nPoint._minMax(point_);
            Point2I min_ = tuple_._get_0();
            Point2I max_ = tuple_._get_1();

            Size2I size_ = new Size2I();
            size_._setWidth(max_._getX() - min_._getX());
            size_._setHeight(max_._getY() - min_._getY());

            mPoint = new Point2I(min_);
            mSize = new Size2I(size_);
        }
开发者ID:zyouhua,项目名称:nvwa,代码行数:17,代码来源:Rect2I.cs

示例3: _contain

 public bool _contain(Point2I nPoint)
 {
     return this._contain(nPoint._getX(), nPoint._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:4,代码来源:Rect2I.cs

示例4: _connectPoint

        public Point2I _connectPoint(Point2I nPoint)
        {
            Point2I result_ = new Point2I();
            Point2I center_ = this._centerPoint();
            if (center_._getX() > nPoint._getX())
            {
                result_._setX(mPoint._getX());
            }
            else
            {
                result_._setX(mPoint._getX() + mSize._getWidth());
            }

            result_._setY(center_._getY());
            return result_;
        }
开发者ID:zyouhua,项目名称:nvwa,代码行数:16,代码来源:Rect2I.cs

示例5: _setBeg

 public void _setBeg(Point2I nBeg)
 {
     mBeg._setX(nBeg._getX());
     mBeg._setY(nBeg._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:5,代码来源:Line2I.cs

示例6: _createLabel

 public void _createLabel(Point2I nPoint)
 {
     this._pushDown(nPoint);
     this._resetShape();
     SideItem sideItem_ = mSideBar._getChooseSideItem();
     LabelCreater labelCreater_ = sideItem_._getTag() as LabelCreater;
     labelCreater_._setObject(mObject);
     labelCreater_._setX(nPoint._getX());
     labelCreater_._setY(nPoint._getY());
     ILabel label_ = labelCreater_._runCreate() as ILabel;
     if (null == label_)
     {
         mSideBar._resetActiveTab();
         this._pushUp();
         return;
     }
     LabelShape labelshape_ = new LabelShape();
     labelshape_._initLabel(label_);
     mSelects.Add(labelshape_);
     mSideBar._resetActiveTab();
     this._pushUp();
 }
开发者ID:zyouhua,项目名称:weilai,代码行数:22,代码来源:CanvasCore.cs

示例7: _fillRectangle

 public static void _fillRectangle(Point2I nPoint, Graphics nGraphics, RGB nRGB, int nSize = 3)
 {
     Point2I result_ = new Point2I(nPoint);
     result_._offset(-nSize, -nSize);
     Color color_ = nRGB._getColor();
     Brush brush_ = new SolidBrush(color_);
     nGraphics.FillRectangle(brush_, result_._getX(), result_._getY(), nSize * 2, nSize * 2);
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:8,代码来源:Graphicsos.cs

示例8: _setPoint

 public void _setPoint(Point2I nPoint)
 {
     mPoint._setX(nPoint._getX());
     mPoint._setY(nPoint._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:5,代码来源:Rect2I.cs

示例9: _setPoint

 public void _setPoint(Point2I nPoint)
 {
     mX = nPoint._getX();
     mY = nPoint._getY();
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:5,代码来源:Point2I.cs

示例10: _offset

 public void _offset(Point2I nPoint)
 {
     this._offset(nPoint._getX(), nPoint._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:4,代码来源:Point2I.cs

示例11: _minMax

 public __tuple<Point2I, Point2I> _minMax(Point2I nPoint)
 {
     return this._minMax(nPoint._getX(), nPoint._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:4,代码来源:Point2I.cs

示例12: _length

 public decimal _length(Point2I nPoint)
 {
     return this._length(nPoint._getX(), nPoint._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:4,代码来源:Point2I.cs

示例13: _offset

 public void _offset(Point2I nPoint)
 {
     if (null != m_tMovePoint2I)
     {
         this.m_tMovePoint2I(nPoint);
     }
     mX += nPoint._getX();
     mY += nPoint._getY();
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:9,代码来源:Label.cs

示例14: _distance

 public double _distance(Point2I nPoint)
 {
     return this._distance(nPoint._getX(), nPoint._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:4,代码来源:Line2I.cs

示例15: _setEnd

 public void _setEnd(Point2I nEnd)
 {
     mEnd._setX(nEnd._getX());
     mEnd._setY(nEnd._getY());
 }
开发者ID:zyouhua,项目名称:nvwa,代码行数:5,代码来源:Line2I.cs


注:本文中的platform.include.Point2I._getX方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。