헬프파일을 참고하시면 보다 많은 정보를 얻을수 있습니다.
아래는 해당 함수에서 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은 무엇을 나 타내는 건가요? 뒤에 부분은 경로 주소 같은데
: 잘몰르겠습니다
|