Image Box
A control that behaves very similarly to System.Windows.Forms.PictureBox, except it only scales image down to fit the display panel but not up.
Namespace: LSOne.Controls
Assembly: LSOne.Controls.Shared
Syntax
public partial class ImageBox : UserControl
Constructors
Name | Description |
---|---|
ImageBox() | Initializes a new instance of the ImageBox without an image to be displayed |
ImageBox(byte[]) | Initializes a new instance of the ImageBox with an array of bytes as the image to be displayed |
ImageBox(Image) | Initializes a new instance of the ImageBox with an image to be displayed |
Properties
Name | Description |
---|---|
Image | The current non-scaled image |
EmbeddedControl | The current instance of ImageBox |
Methods
Name | Description |
---|---|
SetPicture(byte[]) | Sets a new image that will be displayed scaled down if it's bigger than the display panel |
SetPicture(Image) | Sets a new image that will be displayed scaled down if it's bigger than the display panel |
Examples

See Source\SM\Plugins\RetailItems\ViewPages\ItemImagePage.cs from DevPack for usage examples.