본문 바로가기

Application/Delphi Lecture126

파일 정보 가져오기 로컬 파일의 파일 정보 가져오기 function GetFileVersion(filename: string = ''): string; var iBufferSize: DWORD; iDummy: DWORD; pBuffer: Pointer; pFileInfo: Pointer; iVer: array[1..4] of word; begin if filename = '' then FileName := Application.ExeName; Result := ''; iBufferSize := GetFileVersionInfoSize(PChar(filename), iDummy); if (iBufferSize > 0) then begin Getmem(pBuffer, iBufferSize); try GetFileVersionI.. 2012. 9. 27.
2개의 png 이미지를 하나로 만들자 jgp 이미지에 투명 처리된 png 파일을 씌여보자.. 흔히 액자나 스킨이라 불리는 작업을 하는것이다. GDI+ 를 이용하면 간단하게 처리된다. DrawImage 를 이용하면 투명 png 는 투명 그대로 그려지게 된다. 일반 jpg 나 도형에 알파 마스크를 만드는 방법은 다음에 알려주겠다. var graphics, graphics2 : TGPGraphics; Width, Height: Integer; bitmap, bitmap2 : TGPImage; strPath : string; begin strPath := ExtractFilePath(ParamStr(0)); Bitmap := TGPImage.Create(strPath + 'aaa.jpg'); if FileExists(strPath + '\data... 2009. 10. 21.
Webbrowser1 스크롤 없애기 Webbrowser1.OleObject.Document.Body.Style.Border := 'none'; //수직스크롤바 : 보이게할려면 scroll , 숨길려면 hidden WebBrowser1.OleObject.Document.Body.Style.OverflowY := 'hidden'; //수평스크롤바 : 보이게할려면 scroll , 숨길려면 hidden WebBrowser1.OleObject.Document.Body.Style.OverflowX := 'hidden'; 2009. 4. 21.
Visual C++ ActiveX Control for hosting Office documents in Visual Basic or HTML Visual C++ ActiveX Control for hosting Office documents in Visual Basic or HTML View products that this article applies to. This article was previously published under Q311765 On This Page SUMMARY MORE INFORMATION Background information Considerations about the design Download the sample The DSO Framer ActiveX document control sample Run the sample Code a solution using the control Create new do.. 2008. 12. 17.