MobileForms Toolkit Documentation

ImageBox.LoadImage Method (Stream, ImageFormat, Int32)

Creates a new CompactImage object, loads an image from the specified stream into it with specified frame number and displays it using ImageBox.

public void LoadImage(
Stream stream,
ImageFormat imageFormat,
int frame
);

Parameters

stream
Stream to load the image from.
imageFormat
Specifies the format of the image. For the list of valid values ImageFormat.
frame
The number of frame to load.

Remarks

This method creates a new CompactImage object, loads an image into it from the specified stream. The stream which contains the image is specified in the stream parameter. The format of the image is provided in the imageFormat parameter. The frame parameter specifies the frame number of the image that should be loaded. Numbering of the frames is zero based. That means, if you want to load the first frame, put 0 into the frame parameter. The ImageBox then assigns the CompactImage object to the CompactImage property and displays it.

See Also

ImageBox Class | Resco.Controls.ImageBox Namespace | ImageBox.LoadImage Overload List