Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mirsad

@mirsad
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Stretching Bitmap Problem
    M mirsad

    Hello, I'm trying to stretch a bitmap that is in memory using StretchBlt();. Here is what I'm doing and it isn't working: HBITMAP hBmp = dibSect.GetSafeHandle(); CDC MemDC, srcMemDC; CBitmap Bitmap; if(!srcMemDC.CreateCompatibleDC(NULL)) return -1; if(!MemDC.CreateCompatibleDC(NULL)) return -1; if(hBmp != NULL) Bitmap.Attach(hBmp); else return -1; MemDC.SelectObject(hBmp); MemDC.SetStretchBltMode(COLORONCOLOR); if(MemDC.StretchBlt(0, 0, 32, 32, &srcMemDC, 0, 0, bmiHeader.biWidth, bmiHeader.biHeight, SRCCOPY) == 0) return -1; Pos = m_ImageList->Add(MemDC.GetCurrentBitmap(), RGB(0,0,0) ); MemDC.DeleteDC(); srcMemDC.DeleteDC();

    C / C++ / MFC graphics performance help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups