void CImageSeeScrollView::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
ASSERT_VALID(pDoc);
Graphics graphics( pDC->m_hDC );
LPWSTR bstr = m_strFilePath.AllocSysString();
Image image( bstr );
::SysFreeString( bstr );
//Image image(L"c:\\Fish.jpg");
int width = image.GetWidth();
int height = image.GetHeight();
// 화면에 출력
graphics.DrawImage(&image, 10, 10, width, height);
// // 찌그려뜨려 출력
// Point points[] = {Point(250, 20), Point(150, 100), Point(300, 50)};
// graphics.DrawImage(&image, points, 3);
//
// // 확대 출력
// graphics.SetInterpolationMode(InterpolationModeNearestNeighbor);
// graphics.DrawImage(&image, 10, 150, width*2, width*2);
//
// graphics.SetInterpolationMode(InterpolationModeHighQualityBilinear);
// graphics.DrawImage(&image, 220, 150, width*2, width*2);
}
{
CDocument* pDoc = GetDocument();
ASSERT_VALID(pDoc);
Graphics graphics( pDC->m_hDC );
LPWSTR bstr = m_strFilePath.AllocSysString();
Image image( bstr );
::SysFreeString( bstr );
//Image image(L"c:\\Fish.jpg");
int width = image.GetWidth();
int height = image.GetHeight();
// 화면에 출력
graphics.DrawImage(&image, 10, 10, width, height);
// // 찌그려뜨려 출력
// Point points[] = {Point(250, 20), Point(150, 100), Point(300, 50)};
// graphics.DrawImage(&image, points, 3);
//
// // 확대 출력
// graphics.SetInterpolationMode(InterpolationModeNearestNeighbor);
// graphics.DrawImage(&image, 10, 150, width*2, width*2);
//
// graphics.SetInterpolationMode(InterpolationModeHighQualityBilinear);
// graphics.DrawImage(&image, 220, 150, width*2, width*2);
}
덧글을 달아 주세요