C# Class AForge.Controls.PictureBox

Picture box control for displaying an image.

This control is inherited from System.Windows.Forms.PictureBox and is aimed to resolve one of its issues - inability to display images with high color depth, like 16 bpp grayscale, 48 bpp and 64 bpp color images. .NET framework does not handle 16 bpp grayscale images at all, throwing exception when user tries to display them. Color images with 48 bpp and 64 bpp are "kind of" supported, but only maximum of 13 bits for each color plane are allowed. Therefore this control is created, which allows to display as 16 bpp grayscale images, as 48 bpp and 64 bpp color images.

To display high color depth images, the control does internal conversion of them to lower color depth images - 8 bpp grayscale, 24 bpp and 32 bpp color images respectively. In the case source image already has low color depth, it is displayed without any conversions.

Inheritance: System.Windows.Forms.PictureBox
Show file Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples