Partager via


CImage::IsTransparencySupported

Indicates whether the application supports transparent bitmaps and was compiled for Windows 2000 or later.

static BOOL IsTransparencySupported( ) throw( );

Return Value

Nonzero if the current platform supports transparency. Otherwise 0.

Remarks

If the return value is nonzero, and transparency is supported, a call to AlphaBlend, TransparentBlt, or Draw will handle transparent colors.

If the application is compiled for use with operating systems before Windows 2000 or Windows 98, this method will always return 0, even on newer operating systems.

See CImage Limitations with Earlier Operating Systems for more detailed information.

Requirements

Header: atlimage.h

See Also

Reference

CImage Class

CImage::GetTransparentColor