1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-09 14:30:05 +00:00
3 ComputeScanlines
Chuck Walbourn edited this page 2022-01-20 17:41:58 -08:00
DirectXTex

Returns the number of horizontal scanlines in an image given the DXGI format and pixel height.

size_t ComputeScanlines( DXGI_FORMAT fmt, size_t height );

Remarks

For most images, the number of scanlines is the same as the height of the image. For block-compressed (BC) images, the number of scanlines is 1/4 of the original height since each scanline contains 4x4 blocks. For planar images, this number can be 1.5x or 2x the original height.