Udostępnij za pośrednictwem


CImage::Load

Loads an image.

HRESULT Load(
   LPCTSTR pszFileName 
) throw( );
HRESULT Load(
   IStream* pStream
) throw();

Parameters

  • pszFileName
    A pointer to a string containing the name of the image file to load.

  • pStream
    A pointer to a stream containing the name of the image file to load.

Return Value

A standard HRESULT.

Remarks

Loads the image specified by pszFileName or pStream.

Valid image types are BMP, GIF, JPEG, PNG, and TIFF.

Requirements

Header: atlimage.h

See Also

Reference

CImage Class

CImage::LoadFromResource

Other Resources

CImage Members