當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。