Results 1 to 2 of 2

Thread: ใครทราบวิธีเคลียร์ภาพที่เราสร้างไว้บน window บ้าง

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Location
    Thailand
    Posts
    0


    ใครทราบวิธีเคลียร์ภาพที่เราสร้างไว้บน window บ้าง

    คือว่าผมวางรูปได้แล้วทำยังไงถึงเอารูปออกจะ window ได้อ่ะ
    ช่วยด้วยนะครับผมเขียนวางภาพปกตินะครับ
    BITMAP BitmapInfo;
    HBITMAP hbitmap = (HBITMAP)LoadImage(Hinst,filecard[player1[j]],IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE);
    GetObject(hbitmap,sizeof(BITMAP),&BitmapInfo);

    iwidth=BitmapInfo.bmWidth;
    iheight=BitmapInfo.bmHeight;

    HDC hdc = GetDC(hwnd);
    HDC image_dc = CreateCompatibleDC(hdc);
    HBITMAP old_hbitmap = (HBITMAP)SelectObject(image_dc,hbitmap);
    BitBlt(hdc,xr,300,iwidth,iheight,image_dc,0,0,SRCCOPY);

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    Bangkok
    Posts
    187


    Re: ใครทราบวิธีเคลียร์ภาพที่เราสร้างไว้บน window บ้าง

    [code]

    HBRUSH hBr

Similar Threads

  1. Replies: 4
    Last Post: 21-12-2009, 09:05 PM
  2. Replies: 0
    Last Post: 14-05-2009, 11:06 AM
  3. ลง window media player 11 โดยไม่ต้องใช้ window จริง
    By boyjato in forum แนะนำ Software ต่างๆ
    Replies: 1
    Last Post: 14-03-2008, 04:40 PM
  4. Replies: 2
    Last Post: 02-09-2007, 03:50 PM
  5. Replies: 3
    Last Post: 02-10-2006, 12:17 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •