|
여기 Q&A에서 자료를 찾아서 실행해보고 있는데 다음과 같은 에러가 납니다.
[C++ Error] GR32_Transforms.hpp(440): E2109 Not an allowed type
소스코드는 다음과 같습니다.
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include "GR32_Transforms.hpp"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "GR32_Image"
//#pragma link "GR32_Image"
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::TrackBar1Change(TObject *Sender)
{
int nWidth = img32Src->Width;
int nHeight = img32Src->Height;
img32Dst->Bitmap->Width = nWidth;
img32Dst->Bitmap->Height = nHeight;
TAffineTransformation *pT = new TAffineTransformation();
pT->SrcRect = FloatRect((float)0, (float)0, (float)nWidth, (float)nHeight);
pT->Rotate(nWidth/2, nHeight/2, TrackBar1->Position);
img32Dst->BeginUpdate();
img32Dst->Bitmap->Clear(clGray32);
Transform(img32Dst->Bitmap, img32Src->Bitmap, pT);
img32Dst->EndUpdate();
img32Dst->Repaint();
delete pT;
}
FloatRect()에서 에러가 나는데 이유를 잘 모르겠어요. 좀 도와 주세요
|