C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[39020] 안돼요..ㅜ.,ㅜ;
모르겠넹 [] 773 읽음    2005-02-03 11:54
답변 감사합니다.
근데 제가 짠 코딩이랑 다른게 없는듯...
아니면 제가 아직 이해를 못하고 있거나 ^^;
자세히 좀 설명해 주세요
아...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);                                     <***********************이부분***********
: }                                              
: //---------------------------------------------------------------------------

+ -

관련 글 리스트
39012 paintbox로 그림 뿌리기요 모르겠넹 948 2005/02/03
39048     Re:paintbox로 그림 뿌리기요 푸른노래 944 2005/02/04
39013     맞는지 모르겟지만;; 키쿄우 785 2005/02/03
39020         안돼요..ㅜ.,ㅜ; 모르겠넹 773 2005/02/03
39029             [자답]헛.....VCL 전용인가봐요.. 모르겠넹 779 2005/02/03
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.