This example loads an image file and displays it in the ImageKit Control.
To load an image, specify it in the FileName
property. Then use the LoadImageFromFile
method to load the image.
Finally, specify the display mode using the DisplayMode
property and call the Display
method.
Example Code
[Visual Basic.NET]
'Specify the image file and load
it
ImageKit1.File.FileName = "BMP.bmp"
ImageKit1.File.LoadImageFromFile()
'Set the display mode and display the
image
ImageKit1.DisplayMode = Newtone.ImageKit.Win.DisplayMode.Scale
ImageKit1.Display()
[Visual C#.NET]
//Specify the image file and load
it
ImageKit1.File.FileName = "BMP.bmp";
ImageKit1.File.LoadImageFromFile();
//Set the display mode and display
the image
ImageKit1.DisplayMode = Newtone.ImageKit.Win.DisplayMode.Scale;
ImageKit1.Display();
Relevant Properties
ImageKit.DisplayMode
ImageKit.File.FileName
Relevant Methods
ImageKit.File.OpenFileDialog
(Used to display the "Open File" Dialog and read the file.)
ImageKit.File.LoadImageFromFile
ImageKit.Display