This property allows a raster image or a vector image to be passed between the ImageKit and a VisualBasic Picture object or a C#.NET/VB.NET Image object.
[Visual Basic]   imagekitcontrolname.Picture [= Picture ]
[C#.Net]         imagekitcontrolname.Picture [= Image ]
[VB.Net]         imagekitcontrolname.Picture [= Image ]

Reference

This value refers to the VisualBasic Picture object or the C#.NET/VB.NET Image object.

Explanation

It's possible to pass either a raster image or a vector image from the ImageKit to the VisualBasic Picture object. However, with the C#.NET/VB.NET Image object, although you can pass a vector image from the ImageKit Control, the vector image is converted to a raster image in the C#.NET/VB.NET Image object.


In Visual Basic:

(1) From a PictureBox to the ImageKit:

     ImageKit1.Picture = Picture1.Picture

(2) From the ImageKIt to a PictureBox

     Picture1.Picture = ImageKit1.Picture



In VB.NET/ C#.Net: (In C# there must be a semicolon at the end of each line)

(1) From a PictureBox to the ImageKit:

     ImageKit1.Picture = PictureBox1.Image

(2) From the ImageKit to a PictureBox

     PictureBox1.Image = ImageKit1.Picture



Note: At runtime, prior to setting the Picture(Image) object to the Picture property, it is necessary to free any previous contents of the Picture property from the memory.


In Visual Basic:

     Set Picture1.Picture = LoadPicture(path)

     ImageKit1.Picture = LoadPicture()

     ImageKit1.Picture = Picture1.Picture



In VB.NET:

     PictureBox1.Image = Image.FromFile(path)

     ImageKit1.Picture = Nothing

     ImageKit1.Picture = PictureBox1.Image



In C#.NET:

     PictureBox1.Image = Image.FromFile(path);

     ImageKit1.Picture = null;

     ImageKit1.Picture = PictureBox1.Image

Setting this value

  This value can be set at design-time and run-time.

Retrieving this value

  This value can be retrieved at run-time.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation