⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit10.cpp

📁 毕业设计图像处理软件及源代码对毕业生会有所帮助
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit10.h"
extern int iTemplate[4][4];       //平滑操作参数 模板
extern int iTNum;               //平滑操作参数 模板维度
extern int iReturnValue;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm10 *Form10;
//---------------------------------------------------------------------------
__fastcall TForm10::TForm10(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm10::BitBtn2Click(TObject *Sender)
{
        this->Close();
}
//---------------------------------------------------------------------------

void __fastcall TForm10::BitBtn1Click(TObject *Sender)
{
        iTNum=3;
        if(RadioButton1->Checked)
        {
                iTemplate[0][0]=0;
                iTemplate[0][1]=-1;
                iTemplate[0][2]=0;
                iTemplate[1][0]=-1;
                iTemplate[1][1]=5;
                iTemplate[1][2]=-1;
                iTemplate[2][0]=0;
                iTemplate[2][1]=-1;
                iTemplate[2][2]=0;
        }
        else
        {
                iTemplate[0][0]=-1;
                iTemplate[0][1]=-1;
                iTemplate[0][2]=-1;
                iTemplate[1][0]=-1;
                iTemplate[1][1]=9;
                iTemplate[1][2]=-1;
                iTemplate[2][0]=-1;
                iTemplate[2][1]=-1;
                iTemplate[2][2]=-1;
        }
        iReturnValue=1;
        this->Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm10::FormShow(TObject *Sender)
{
        iReturnValue=0;
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -