Re:The Four Programming Questions from My 1994 Microsoft Int...
by jimbob45 on Sunday May 31, 2026 @09:48PM
(#48351762)
What is pitch in regard to a rectangle in question two?
[ Parent
| on HN ]
Re:The Four Programming Questions from My 1994 Microsoft Int...
by hcs on Monday June 01, 2026 @01:38AM
(#48353010)
Pitch is the offset between the start of consecutive rows of pixels in the image, used to convert y coordinates into the start of any given row, so you access a pixel as buffer[y*pitch+x]. Often this is the image width, but can be greater depending on required alignment.