Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C# by 11 ( 16 years ago )
int iTempNum=0;
            Font labelFont = new Font("Arial", 16);
            SolidBrush myBrush = new SolidBrush(Color.Coral);
            while (tempY < fHeight)
            {
                e.Graphics.DrawLine(penNet, 0, (fWidth / 2 + fShiftY) + tempY, fWidth, (fHeight / 2 + fShiftY) + tempY);
                e.Graphics.DrawString(string.Format("{0}", -iTempNum * 0.5), labelFont, myBrush, (fWidth / 2 + fShiftX), (fHeight / 2 + fShiftY) + tempY);
                iTempNum++;
                tempY += 80*fZoomY;
         
            }
            iTempNum = 0;
            tempY = 0;
            
            while (fHeight+fShiftY - tempY > 0)
            {
                e.Graphics.DrawLine(penNet, 0, (fWidth / 2 + fShiftY) - tempY, fWidth, (fHeight / 2 + fShiftY) - tempY);
                e.Graphics.DrawString(string.Format("{0}", iTempNum * 0.5), labelFont, myBrush, (fWidth / 2 + fShiftX), (fHeight / 2 + fShiftY) - tempY);
                iTempNum++;
                tempY += 80*fZoomY;
            }
            // ЗАСЕЧКИ НА ОСИ X
            tempX = 0;
            iTempNum = 0;
            while (tempX < fWidth)
            {
                e.Graphics.DrawLine(penNet, (fWidth / 2 + fShiftX) + tempX, 0, (fWidth / 2 + fShiftX) + tempX, fHeight);
                e.Graphics.DrawString(string.Format("{0}", iTempNum * 0.5), labelFont, myBrush, (fWidth / 2 + fShiftX) + tempX, fHeight / 2 + fShiftY);
                iTempNum++;
                tempX += 80 * fZoomX;

            }

 

Revise this Paste

Your Name: Code Language: