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
[51486] Re:Graphics32 에서 TBitmap32의 property중 Pixel를 사용해 보신 분 계신가요?
이정구 [appleii] 1637 읽음    2007-12-05 13:47
파라메터가 많다는 뜻이 아니라 너무 적다는 뜻이 아닐까요?

GR32.hpp 에는 Pixel property 가 다음과 같이 나옵니다.

__property TColor32 Pixel[int X][int Y] = {read=GetPixel, write=SetPixel/*, default*/};

그러므로,

tcolor = tBitmap->Pixel[0][0];

와 같이 써보세요.

leo21c 님이 쓰신 글 :
: 정말 당황스럽네요.
: 당연히 될줄 알았는데 parameter가 많다며 에러가 나네요.
:
: TBitmap32 *tBitmap;
: tBitmap->LoadFromFile(filename);
: TColor32 tcolor;
: tcolor = (TColor32)tBitmap->Pixel[0,0];
:
: 이렇게 간단히 만들어 봤는데
:
: tcolor = (TColor32)tBitmap->Pixel[0,0];
:
: 이곳에서 에러가 발생합니다.
:
: E3193 too few parameters in call to '_fastcall TBitamp32::GetPixel[int,int]'
:
: Help를 보면
:
: property Pixel[X, Y: Integer]: TColor32; default;
: property PixelS[X, Y: Integer]: TColor32;
: property PixelW[X, Y: Integer]: TColor32;
: property PixelX[X, Y: TFixed]: TColor32;
: property PixelXS[X, Y: TFixed]: TColor32;
: property PixelXW[X, Y: TFixed]: TColor32;
: property PixelF[X, Y: Single]: TColor32;
: property PixelFS[X, Y: Single]: TColor32;
: property PixelFW[X, Y: Single]: TColor32;
:
: 이렇게 되어 있습니다.
:
: 이유가 뭘까요?
:
: Include는 아래와 같이 했습니다.
:
: #include "GR32.hpp"
: #include "GR32_Image.hpp"
: #include "GR32_Layers.hpp"
: #include "GR32_Transforms.hpp"
: #include "GR32_Lowlevel.hpp"
: #include "GR32_Resamplers.hpp"
:
: 혹시 Graphics32 사용해 보신분이 계시면 답변 부탁드립니다.

+ -

관련 글 리스트
51482 Graphics32 에서 TBitmap32의 property중 Pixel를 사용해 보신 분 계신가요? leo21c 1125 2007/12/05
51497     Re:Graphics32 에서 TBitmap32의 property중 Pixel를 사용해 보신 분 계신가요? 이용태 1777 2007/12/05
51486     Re:Graphics32 에서 TBitmap32의 property중 Pixel를 사용해 보신 분 계신가요? 이정구 1637 2007/12/05
51485     Re:Graphics32 에서 TBitmap32의 property중 Pixel를 사용해 보신 분 계신가요? 수문장 1246 2007/12/05
51488         감사합니다. gr32.hpp를 확인 안했더니....^^(냉무) leo21c 1519 2007/12/05
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.