Technical Article
GDI+를 사용해 BoA요~ (PNG출력까지~)
fiadot_old
2004. 11. 29. 11:22
셋팅~~~~
1. Platform SDK를 받는다.
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
상단 메뉴에 Downloads->Install...
Core SDK에 Build environment, Documentation, Sample and source code선택한다(다해도 되고 필요한거만 해도 되고...알아서..)
DLL은
http://www.microsoft.com/downloads/details.aspx?FamilyID=6a63ab9c-df12-4d41-933c-be590feaa05a&DisplayLang=en
문서명 : Platform SDK Redistributable: GDI+
파일명 : gdiplus_dnld.exe
이거 받아서 windows밑에 system32에 복사한다.
2. 대략 오래기다리면 C:Program FilesMicrosoft SDK에 설치가 끝난다.
3. Visual Studio 6에서 Tools-Options-Directories 에서
Include = C:PROGRAM FILESMICROSOFT SDKINCLUDE
Libray = C:PROGRAM FILESMICROSOFT SDKLIB
를 추가해서 최상단으로 옮겨준다.
이까지는 비졀스튜디오에서 셋팅해야할꺼고....
이후부터는 프로젝트단위 셋팅...
4. Project-Settings에서 Link탭-Object/Library Modules에
gdiplus.lib추가(Debug/Release 다~ 안하면 즐)
5. 삐리리App클래스.h
ULONG_PTR m_pGDIPlus; 추가
6. 삐리리App클래스.cpp에서...
6-1. InitInstance() 오버라이딩
GdiplusStartupInput gdiplusStartupInput;
GdiplusStartup(&m_pGDIPlus, &gdiplusStartupInput, NULL);
추가
6-2. ExitInstance() 오버라이딩
GdiplusShutdown(m_pGDIPlus);
추가
7. StdAfx.h에
#include
using namespace Gdiplus;
추가
<참조> 데브피아 어떤분 ..;
이미지 출력하기~~~~ 뚜둥
Image imgT(L"test.png");
CDC *pDC = GetDlgItem(IDC_STATIC_IMG)->GetDC();
Graphics graph(pDC->m_hDC);
graph.DrawImage(&imgT, Point(0,0));
이딴식으로....
다른방법....
1. Platform SDK를 받는다.
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
상단 메뉴에 Downloads->Install...
Core SDK에 Build environment, Documentation, Sample and source code선택한다(다해도 되고 필요한거만 해도 되고...알아서..)
DLL은
http://www.microsoft.com/downloads/details.aspx?FamilyID=6a63ab9c-df12-4d41-933c-be590feaa05a&DisplayLang=en
문서명 : Platform SDK Redistributable: GDI+
파일명 : gdiplus_dnld.exe
이거 받아서 windows밑에 system32에 복사한다.
2. 대략 오래기다리면 C:Program FilesMicrosoft SDK에 설치가 끝난다.
3. Visual Studio 6에서 Tools-Options-Directories 에서
Include = C:PROGRAM FILESMICROSOFT SDKINCLUDE
Libray = C:PROGRAM FILESMICROSOFT SDKLIB
를 추가해서 최상단으로 옮겨준다.
이까지는 비졀스튜디오에서 셋팅해야할꺼고....
이후부터는 프로젝트단위 셋팅...
4. Project-Settings에서 Link탭-Object/Library Modules에
gdiplus.lib추가(Debug/Release 다~ 안하면 즐)
5. 삐리리App클래스.h
ULONG_PTR m_pGDIPlus; 추가
6. 삐리리App클래스.cpp에서...
6-1. InitInstance() 오버라이딩
GdiplusStartupInput gdiplusStartupInput;
GdiplusStartup(&m_pGDIPlus, &gdiplusStartupInput, NULL);
추가
6-2. ExitInstance() 오버라이딩
GdiplusShutdown(m_pGDIPlus);
추가
7. StdAfx.h에
#include
using namespace Gdiplus;
추가
<참조> 데브피아 어떤분 ..;
이미지 출력하기~~~~ 뚜둥
Image imgT(L"test.png");
CDC *pDC = GetDlgItem(IDC_STATIC_IMG)->GetDC();
Graphics graph(pDC->m_hDC);
graph.DrawImage(&imgT, Point(0,0));
이딴식으로....
다른방법....