CImage::GetPitch
Visual Studio 2005
Retrieves the pitch of an image.
int GetPitch( ) const throw( );
The pitch is the distance, in bytes, between two memory addresses that represent the beginning of one bitmap line and the beginning of the next bitmap line. Because pitch is measured in bytes, the pitch of an image helps you to determine the pixel format. The pitch can also include additional memory, reserved for the bitmap.
Use GetPitch with GetBits to find individual pixels of an image.
Note |
|---|
| This method supports only DIB section bitmaps. |
Reference
CImage ClassCImage::GetPixelAddress
CImage::GetWidth
CImage::GetHeight
Note