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
[62393] GraphicEx를 이용하여 각종 포맷의 이미지를 표시하는 Delphi용 코드를 Cbuilder용으로 변환하는 방법요?
DreamTree [allin1985] 989 읽음    2010-09-10 11:14
아래 소스는 GraphicEx를 이용하여 각종 포맷의 이미지를 표시하는 Delphi용 코드입니다.
이를 Cbuilder용 코드로 변환하려고 합니다.
Graphic과 GraphicClass간의 연결을 어떻게 하는지 도저히 모르겟네요...
      Delphi->              Graphic := GraphicClass.Create;
      Cbuilder->          ????
도와주세요...

uses 
  GraphicEx 

...


procedure TForm1.DoLoad(const FileName: String); 
var 
  : TGraphicExGraphicClass; 
  Graphic: TGraphic; 
begin 
  Screen.Cursor := crHourGlass; 
  try 
    try 
      GraphicClass := FileFormatList.GraphicFromContent(FileName); 
      if GraphicClass = nil then 
        Image1.Picture.LoadFromFile(FileName) 
      else 
      begin 
        Graphic := GraphicClass.Create; 
        Graphic.LoadFromFile(FileName); 
        Image1.Picture.Graphic := Graphic; 
      end; 
    except 
    end; 
  finally 
    Screen.Cursor := crDefault; 
  end; 
end;

+ -

관련 글 리스트
62393 GraphicEx를 이용하여 각종 포맷의 이미지를 표시하는 Delphi용 코드를 Cbuilder용으로 변환하는 방법요? DreamTree 989 2010/09/10
62396     Re:GraphicEx를 이용하여 각종 포맷의 이미지를 표시하는 Delphi용 코드를 Cbuilder용으로 변환하는 방법 locke 948 2010/09/10
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.