MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / SetBackImage

Method SetBackImage

windows/APIExample/APIExample/AGVideoWnd.cpp:234–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234BOOL CAGVideoWnd::SetBackImage(UINT nID, UINT nWidth, UINT nHeight, COLORREF crMask)
235{
236 CBitmap bmBackImage;
237
238 if (!bmBackImage.LoadBitmap(nID))
239 return FALSE;
240
241 m_imgBackGround.DeleteImageList();
242
243 m_imgBackGround.Create(nWidth, nHeight, ILC_COLOR24 | ILC_MASK, 1, 1);
244 m_imgBackGround.Add(&bmBackImage, crMask);
245 bmBackImage.DeleteObject();
246
247 Invalidate(TRUE);
248
249 return TRUE;
250}
251
252
253void CAGVideoWnd::SetVideoStatsInfo(UINT nWidth, UINT nHeight, UINT nFps, UINT nBitrate, UINT lossRate, UINT delay)

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected