728x90
CBitmap을 파일 저장하는 방법은
CBitmap을 CImage로 변환하여 저장하시면 됩니다
코드는 아래와 같습니다
CBitmap bitmap;
CImage img;
// bitmap 선작업....
img.Attach(bitmap.operator HBITMAP());
img.Save({저장할 위치});
img.Destroy();
// 마무리 작업...
제 글이 도움이 되셨다면 댓글 & 공감 부탁드려요 😀
728x90
반응형
'Application > MFC' 카테고리의 다른 글
[MFC] GetPrivateProfileString / WritePrivateProfileString (0) | 2023.06.28 |
---|---|
[MFC] CWnd 화면을 클립 보드로 복사하기 (2) | 2023.05.09 |
[MFC] Thread 동기화 (CreateEvent) (0) | 2023.05.03 |
[MFC] x64 OutputDebugString 디버깅 오류 (0) | 2023.04.27 |
[MFC] 한글 로그 파일 작성 (WideCharToMultiByte) (0) | 2023.04.26 |