ILNumerics Ultimate VS

ILMathloadImage Method (Stream, NullableRectangle)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Load pixel data from image stream.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<int> loadImage(
	Stream inputStream,
	Nullable<Rectangle> rect = null
)

Parameters

inputStream
Type: System.IOStream
Image data as stream.
rect (Optional)
Type: SystemNullableRectangle
[Optional] Rectangular area in the image to read data from. Default: the whole image is read.

Return Value

Type: RetArrayInt32
Image pixel data as Int32 elements
Remarks

Each pixel in the image is converted to a single element in the array returned. All channels are accumulated in the single element. Each channel is represented by 8 bits in the 32 bits of each Int32 element.

The image data are considered as PixelFormat.Format32bppArgb. If you get unexpected results, make sure, the image is provided in a compatible format.

[ILNumerics Computing Engine]

See Also

Reference

MathInternal.loadImage(Image, NullableRectangle)
MathInternal.loadArray``1(String, String)