|
답변 감사합니다.
근데 제가 짠 코딩이랑 다른게 없는듯...
아니면 제가 아직 이해를 못하고 있거나 ^^;
자세히 좀 설명해 주세요
아...CLX Application 에서 사용하는거라
Graphics::TBitmap* gbitmap = new Graphics::TBitmap;
를
Qgraphics::TBitmap* gbitmap = new Qgraphics::TBitmap;
로 바꿨답니다.
키쿄우 님이 쓰신 글 :
: //---------------------------------------------------------------------------
:
: #include <vcl.h>
: #pragma hdrstop
:
: #include "Unit1.h"
: //---------------------------------------------------------------------------
: #pragma package(smart_init)
: #pragma resource "*.dfm"
: TForm1 *Form1;
: Graphics::TBitmap* gbitmap = new Graphics::TBitmap; <***********************이부분***********
: //---------------------------------------------------------------------------
: __fastcall TForm1::TForm1(TComponent* Owner)
: : TForm(Owner)
: {
: }
: //---------------------------------------------------------------------------
:
: void __fastcall TForm1::Button1Click(TObject *Sender)
: {
: OpenDialog1->Execute(); ***********************이부분***********>
: String fileName;
: fileName = OpenDialog1->FileName;
:
:
:
: gbitmap->LoadFromFile(fileName);
: Image1->Picture->LoadFromFile(fileName);
: PaintBox1->Canvas->Draw(0,0,gbitmap); <***********************이부분***********
: }
: //---------------------------------------------------------------------------
|