Gets or sets the image that the PictureBox displays.

Namespace:  AForge.Controls
Assembly:  AForge.Controls (in AForge.Controls.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public Image Image { get; set; }

Remarks

The property is used to set image to be displayed or to get currently displayed image.

Note:In the case if source image has high color depth, like 16 bpp grayscale image, 48 bpp or 64 bpp color image, it is converted to lower color depth before displaying - to 8 bpp grayscale, 24 bpp or 32 bpp color image respectively.

Note:During color conversion the original source image is kept unmodified, but internal converted copy is created. The property always returns original source image.

See Also