You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Pixel Access > GetStride Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.GetStride Method

Returns the width, in bytes, of a single row of pixel data of a GdPicture image. 

Also known as pitch or scan width, this width is a multiple, or possibly sub-multiple, of the pixel dimensions of the image and may be padded out to include a few more bytes.

C#
public int GetStride(
    int ImageID
);
Visual Basic
Public Function GetStride(
    ByVal ImageID As Integer
) As Integer
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Returns

If success, non 0: a GdPicture image stride. If fail, 0: Use the GetStat() function to determine the reason this function failed.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.