ILMImgCapSrcBitmap::GetStride

Summary

Retrieves the bitmap stride.

Syntax

#include "ilmimgcapsrc.h"
Platform Syntax
C HRESULT ILMImgCapSrcBitmap_GetStride( pImgCapSrcBitmap, pVal)
C++ HRESULT GetStride(pVal)

Parameters

ILMImgCapSrcBitmap * pImgCapSrcBitmap

Pointer to an ILMImgCapSrcBitmap interface.

INT * pVal

Pointer to a variable that receives the bitmap stride (in bytes).

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

The stride is the byte offset between the beginning of one scan line and the next. This is usually (but not necessarily) the number of bytes in the pixel format (for example, 2 for 16 bits per pixel) multiplied by the width of the bitmap. The value returned must be a multiple of four.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Help Version 23.0.2025.1.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.