ホーム » メモ » MetaFile と MemoryDC

2013年5月
 1234
567891011
12131415161718
19202122232425
262728293031  

カテゴリー

アーカイブ

ブログ統計情報

  • 79,531 アクセス



MetaFile と MemoryDC

ODMMeta.cxx , ODrawDcM.hxx
    pDC->IntersectClipRect(imgRect) ;
    MetaFile mf ;
    mf.SetFileName(imgN) ;
  // mf.Draw(pDC,imgRect) ;
    {
      MemoryDC memDC ;
      CRect mRect(CPoint(0,0),imgRect.Size()) ;
      memDC.Init(CRect(mRect).Size()) ;
      {
        int colIndex = COLOR_3DFACE ;
        COLORREF clrC = ::GetSysColor(colIndex) ;
        CDC* mdc = memDC.GetMemoryDC() ;
        CRect clrR = mRect ;
        mdc->FillSolidRect(clrR,clrC) ;
        mf.Draw(mdc,mRect) ;
        }
      memDC.Draw(pDC,imgRect) ;
      memDC.Term() ;
      }

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

コメントする

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

%d人のブロガーが「いいね」をつけました。