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
[61123] Re:ImageList1->GetBitmap()
송신영 [palindrome] 2041 읽음    2010-05-18 17:52
헬프파일을 참고하시면 보다 많은 정보를 얻을수 있습니다.
아래는 해당 함수에서 F1키를 눌러 나온 헬프 내용입니다.

Retrieves a specified image as a bitmap.
void __fastcall GetBitmap(int Index, Graphics::TBitmap* Image);
Description
Use the GetBitmap method to obtain a particular image in the image list as a bitmap object. Index denotes the index of the image. GetBitmap assigns the image to the TBitmap object passed in as the Image parameter.

Example:
This example assigns a bitmap contained in an ImageList to an Image component's Picture's Bitmap property and displays the bitmap.

void __fastcall TForm1::Button1Click(TObject *Sender)
{
   ImageList1->GetBitmap(0,Image1->Picture->Bitmap);
}


두번째 인자는 Bitmap 포인터입니다.
예제처럼 한번 해보세요.

공부중 님이 쓰신 글 :
: ImageList1->GetBitmap(0,)에서 처음 들어가는 0 또는 1은 무엇을 나 타내는 건가요? 뒤에 부분은 경로 주소 같은데
: 잘몰르겠습니다

+ -

관련 글 리스트
61122 ImageList1->GetBitmap() 공부중 1601 2010/05/18
61123     Re:ImageList1->GetBitmap() 송신영 2041 2010/05/18
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.