ホーム » 2010 » 10月 » 09

日別アーカイブ: 2010/10/09

2010年10月
 12
3456789
10111213141516
17181920212223
24252627282930
31  

カテゴリー

アーカイブ

ブログ統計情報

  • 80,214 アクセス



CImage::Draw 部分のメモ

//  AtlImage.h より

inline BOOL CImage::Draw(
  _In_ HDC hDestDC,
  _In_ int xDest,
  _In_ int yDest,
  …
{
  …
#if WINVER >= 0x0500
  if( ((m_iTransparentColor != -1) || (m_clrTransparentColor != (COLORREF)-1)) && IsTransparencySupported() ) {
    bResult = ::TransparentBlt( hDestDC, xDest, yDest, … , GetTransparentRGB() ) ;
    }
  else if( m_bHasAlphaChannel && IsTransparencySupported() ) {
    BLENDFUNCTION bf;
    bf.BlendOp = AC_SRC_OVER;
    bf.BlendFlags = 0;
    bf.SourceConstantAlpha = 0xff;
    bf.AlphaFormat = AC_SRC_ALPHA;
    bResult = ::AlphaBlend( hDestDC, xDest, yDest, … , bf) ;
    }
  else
#endif // WINVER >= 0x0500
  {
    bResult = ::StretchBlt( hDestDC, xDest, yDest, … , SRCCOPY) ;
    }
  …
  return( bResult );
  }

Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.