Graphics::Graphics(Image*) 메서드(gdiplusgraphics.h)

Image 개체와 연결된 Graphics::Graphics 개체를 만듭니다.

구문

void Graphics(
  [in] Image *image
);

매개 변수

[in] image

형식: Image*

Graphics::Graphics 개체와 연결될 Image 개체에 대한 포인터입니다.

반환 값

없음

설명

Image 개체가 읽기 위해 열린 메타파일을 기반으로 하는 경우 이 생성자가 실패합니다. Image::Image(file)Metafile::Metafile(file) 생성자는 읽기 위해 메타파일을 엽니다. 기록을 위해 메타파일을 열려면 디바이스 컨텍스트 핸들을 수신하는 메타파일 생성자를 사용합니다.

이미지가 다음 픽셀 형식 중 하나를 사용하는 경우에도 이 생성자가 실패합니다.

  • PixelFormatUndefined
  • PixelFormatDontCare
  • PixelFormat1bppIndexed
  • PixelFormat4bppIndexed
  • PixelFormat8bppIndexed
  • PixelFormat16bppGrayScale
  • PixelFormat16bppARGB1555

요구 사항

   
지원되는 최소 클라이언트 Windows XP, Windows 2000 Professional [데스크톱 앱만 해당]
지원되는 최소 서버 Windows 2000 Server[데스크톱 앱만]
대상 플랫폼 Windows
헤더 gdiplusgraphics.h(Gdiplus.h 포함)
라이브러리 Gdiplus.lib
DLL Gdiplus.dll

참고 항목

프로그래밍 모델의 변경 내용

시작

그래픽

그래픽 생성자

이미지