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
[11470] Re:[질문] TBitmap에서 TBitmap으로 복사 할때 투명색 어떻게 사용하지?
방태윤 [nabty] 976 읽음    2001-09-26 20:04
void __fastcall TForm1::Button1Click(TObject *Sender)

{
  Graphics::TBitmap *pBitmap = new Graphics::TBitmap();
  try
  {
    pBitmap->LoadFromFile("C:\\Program Files\\Common Files\\Borland Shared\\Images\\Splash\\256color\\factory.bmp ");
    pBitmap->Transparent = true;
    pBitmap->TransparentColor = pBitmap->Canvas->Pixels[50,50];
    Form1->Canvas->Draw(0,0,pBitmap);
    pBitmap->TransparentMode = tmAuto; 
    Form1->Canvas->Draw(50,50,pBitmap);
  }
  catch (...)

  {
    ShowMessage("Could not load or display bitmap");
  }
  delete pBitmap;
}
빌더의 transparentcolor 에대한 예제입니다.끝.


이단자 님이 쓰신 글 :
: 말그대로... 두개의 TBitmap 객제 a,b가 있으면
:
: a에 b의 이미지를 복사할때 흰색은 복사하지 않으며 복사하는 방법 아시면 좀 가르쳐 주세요
:
: 어떻게 해야 할지...

+ -

관련 글 리스트
11448 [질문] TBitmap에서 TBitmap으로 복사 할때 투명색 어떻게 사용하지? 이단자 793 2001/09/26
11470     Re:[질문] TBitmap에서 TBitmap으로 복사 할때 투명색 어떻게 사용하지? 방태윤 976 2001/09/26
11451     Re:[질문] TBitmap에서 TBitmap으로 복사 할때 투명색 어떻게 사용하지? 로렌조 854 2001/09/26
11462         Re:Re:[질문] 그방법으론 안되더군요. 다른 방법 없나요 이단자 786 2001/09/26
11465             Re:Re:Re:[질문] 그방법으론 안되더군요. 다른 방법 없나요 시간한줌 764 2001/09/26
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.