📄 as.cpp
字号:
// as.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
void HorLinePos(int LeftUpY,int RightDownY,int& one,int& two,int& three,int& four,int& five)
{
int h;
one = LeftUpY;
five = RightDownY;
h = RightDownY - LeftUpY + 1;
//高度方向象素总数
if(h % 2 == 0)
three = one + h/2 - 1;
else
three = one + h/2;
int deltah= (three - one)/3;
if(deltah == 0)
deltah = 1;
two= three - deltah;
four = three + deltah;
}
//求5条垂直线的位置实现方式如下:
void VerLinePos(int LeftUpX,int RightDownX,int& one,int& two,int& three,int& four,int& five)
{
int w;
five= RightDownX;
one= LeftUpX;
//求中间纵线的位置
w= RightDownX - LeftUpX + 1;
//数字宽度
three = one + w/2;
int deltaw= (three - one)/2;
if(deltaw == 0)
deltaw = 1;
two = one + deltaw;
four = five - deltaw;
}
int main(int argc, char* argv[])
{
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -