Returns an instance of
Scanline<(Of <(T>)>), representing the scanline
specified by
scanline of this
FreeImageBitmap.
Since FreeImage bitmaps are always bottum up aligned, keep in mind that scanline 0 is the
bottom-most line of the image.
Namespace:
FreeImageAPI
Assembly:
FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public Scanline<T> GetScanline<T>(
int scanline
)
where T : struct, new()
|
Visual Basic (Declaration) |
---|
Public Function GetScanline(Of T As {Structure, New}) ( _
scanline As Integer _
) As Scanline(Of T) |
Visual C++ |
---|
public:
generic<typename T>
where T : value class, gcnew()
Scanline<T>^ GetScanline(
int scanline
) |
Type Parameters
Return Value
An instance of
Scanline<(Of <(T>)>) representing the
scanlineth scanline.
Remarks
Examples
CopyC#
FreeImageBitmap bitmap = new FreeImageBitmap(@"C:\Pictures\picture.bmp");
if (bitmap.ColorDepth == 32)
{
Scanline<RGBQUAD> scanline = bitmap.GetScanline<RGBQUAD>(0);
foreach (RGBQUAD pixel in scanline)
{
Console.WriteLine(pixel);
}
}
Exceptions
Version Information
FreeImage.NET
Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1
See Also