Josef_Stalin
July 17th, 2005, 12:36 PM
BOOL BitBlt(
HDC hdcDest, // handle to destination DC
int nXDest, // x-coord of destination upper-left corner
int nYDest, // y-coord of destination upper-left corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXSrc, // x-coordinate of source upper-left corner
int nYSrc, // y-coordinate of source upper-left corner
DWORD dwRop // raster operation code
That is from MSDN.
Now obviously the destination rectangle makes sense as this is the place it is supposed to go.
So my question is what does the term "source coordinates" mean and how would they have to do with loading a bitmap which comes from a separate file, not a previous place on the screen?
Also are these units relative to the screen or relative to the window? It doesn't make sense if it's relative to the screen because then what happens if you make the window smaller or move it around?
These are a couple of questions which I had trouble finding the answers for in documentation (they assume you already know) so I posted this here. Thank you for even reading this.
HDC hdcDest, // handle to destination DC
int nXDest, // x-coord of destination upper-left corner
int nYDest, // y-coord of destination upper-left corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXSrc, // x-coordinate of source upper-left corner
int nYSrc, // y-coordinate of source upper-left corner
DWORD dwRop // raster operation code
That is from MSDN.
Now obviously the destination rectangle makes sense as this is the place it is supposed to go.
So my question is what does the term "source coordinates" mean and how would they have to do with loading a bitmap which comes from a separate file, not a previous place on the screen?
Also are these units relative to the screen or relative to the window? It doesn't make sense if it's relative to the screen because then what happens if you make the window smaller or move it around?
These are a couple of questions which I had trouble finding the answers for in documentation (they assume you already know) so I posted this here. Thank you for even reading this.