close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Visual C# 程式設計
May 1st 2013, 03:51

我是用visual studio 2012 C#,想請教各位為何我下列程式碼中的this.CreateGraphics()和this.Size及this.ClientRectangle都會顯示不包含其定義,也找不到擴充方法??

private void CaptureScreen()
{
Graphics mygraphics = mygraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width, s.Height, mygraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage);
IntPtr dc1 = mygraphics.GetHdc();
IntPtr dc2 = memoryGraphics.GetHdc();
BitBlt(dc2, 0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height, dc1, 0, 0, 13369376);
mygraphics.ReleaseHdc(dc1);
memoryGraphics.ReleaseHdc(dc2);
}

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: Thatcher's Tyrants - The Tanks, The Guns, The Christmas Cards.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 newspoku 的頭像
    newspoku

    2016韓劇 38師機動隊】電視劇 38師機動隊劇情&人物介紹~徐仁國‬、崔秀榮、馬東錫-小宅戲劇週記38師機動隊線上看 - 38師機動隊線上看免費

    newspoku 發表在 痞客邦 留言(0) 人氣()