#### Archived

This topic is now archived and is closed to further replies.

# Bitmap question... Windows C++,

## Recommended Posts

 CBitmap bitmap;
CDC dcComp;
dcComp.CreateCompatibleDC(dc);
dcComp.SelectObject(&bitmap);
BITMAP bmInfo;
bitmap.GetObject(sizeof(bmInfo),&bmInfo);
int width,height,srcx,srcy;

------

dc->BitBlt(picX,picY,width,height,&dcComp,srcx,srcy,SRCCOPY);

My question is this This code puts a portion of the bitmap to the screen. I want to make sure its not copying the whole bitmap. I just am taking a peice of the picture. Am I correct with this understanding. Write back or IM me Thanks in Advance...

• ### Forum Statistics

• Total Topics
628402
• Total Posts
2982472

• 9
• 10
• 9
• 19
• 24