how to give "transaction effect" in case of jpg,gif and so on.
-
Hi, I can give "transaction effect" with BitBlt() on Screen in case of Bitmap image. but I'd like to know how to give "transaction effect" in case of jpg,gif and so on. === short example code === CDC MemDC; BITMAP bm; m_Bitmap.LoadBitmap(IDB_BITMAT1); m_Bitmap.GetBitmap(&bm); MemDC.CreateCompatibleDC(pDC); CBitmap* pOld = (CBitmap*)MemDC.SelectObject(&m_Bitmap); int w=bm.bmWidth; int h=bm.bmHeight; for(int j=0;j<w;j+=2) { pDC->BitBlt(0,0,j,h,&MemDC,w-j,0,SRCCOPY); } pDC->BitBlt(0,0,w,h,&MemDC,0,0,SRCCOPY); MemDC.SelectObject( pOld ); Any comment will help me! Thanks, have a day.
-
Hi, I can give "transaction effect" with BitBlt() on Screen in case of Bitmap image. but I'd like to know how to give "transaction effect" in case of jpg,gif and so on. === short example code === CDC MemDC; BITMAP bm; m_Bitmap.LoadBitmap(IDB_BITMAT1); m_Bitmap.GetBitmap(&bm); MemDC.CreateCompatibleDC(pDC); CBitmap* pOld = (CBitmap*)MemDC.SelectObject(&m_Bitmap); int w=bm.bmWidth; int h=bm.bmHeight; for(int j=0;j<w;j+=2) { pDC->BitBlt(0,0,j,h,&MemDC,w-j,0,SRCCOPY); } pDC->BitBlt(0,0,w,h,&MemDC,0,0,SRCCOPY); MemDC.SelectObject( pOld ); Any comment will help me! Thanks, have a day.
I'd give Load JPEG and (transparant) GIF picture files from a resource in 3 lines code.[^] a try.
1300 calories of pure beef goodness can't be wrong!
-
I'd give Load JPEG and (transparant) GIF picture files from a resource in 3 lines code.[^] a try.
1300 calories of pure beef goodness can't be wrong!
Bacon Ultimate Cheeseburger wrote:
1300 calories of pure beef goodness can't be wrong!
However you've to run for about twelve miles in order to consume them. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]