VintaSoft Barcode .NET SDK 15.0: Documentation for Web developer
Vintasoft.Imaging Namespace / VintasoftBitmap Class / GetStride(PixelFormat,Int32) Method
Syntax Requirements SeeAlso
In This Topic
    GetStride(PixelFormat,Int32) Method (VintasoftBitmap)
    In This Topic
    Calculates an image stride, in bytes.
    Syntax
    'Declaration
    
    Public Shared Function GetStride( _
    ByVal pixelFormat
    Image pixel format.
    As PixelFormat, _
    ByVal width
    Image width, in pixels.
    As Integer _
    ) As Integer
    public static int GetStride(
    PixelFormat pixelFormat,
    int width
    )
    public: static int GetStride(
    PixelFormat pixelFormat,
    int width
    )
    public:
    static int GetStride(
    PixelFormat pixelFormat,
    int width
    )

    Parameters

    pixelFormat
    Image pixel format.
    width
    Image width, in pixels.

    Return Value

    Image stride for specified image width and pixel format.
    Requirements

    Target Platforms: .NET 8; .NET 7, .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5

    See Also