Picture Methods/Properties through Scripts
-
- Posts: 13
- Joined: Mon Mar 11, 2013 8:48 am
Picture Methods/Properties through Scripts
Is there away to access extended functionality with Picture object through scripting (i.e. Picture1.Image = blah.jpeg). Currently it only has available properties such as Visible or Enable and so on. Or do you have to create a System.Windows.Forms object and build out a PictureBox?
- Attachments
-
- ExampleForm.png (8.93 KiB) Viewed 26581 times
-
- Available Methods.png (7.54 KiB) Viewed 26581 times
Re: Picture Methods/Properties through Scripts
Install Microsoft Visual Studio (Full or C# Express), and set it up as a external IDE. There is forum post how to do that.
iX Script IDE only shows common properties / function for each object that are "safe/simple" to use for any user (script expert or not)...
The properties and function can be called from iX but they are not visible.
But when you have a look in Visual Studio you will see more.
Picture1 is actully m_Picture1, so if you need to get the real object access it via the real member varible (not the adapterd version).
iX Script IDE only shows common properties / function for each object that are "safe/simple" to use for any user (script expert or not)...
The properties and function can be called from iX but they are not visible.
But when you have a look in Visual Studio you will see more.
Picture1 is actully m_Picture1, so if you need to get the real object access it via the real member varible (not the adapterd version).
-
- Posts: 13
- Joined: Mon Mar 11, 2013 8:48 am
Re: Picture Methods/Properties through Scripts
Thanks Edmund, you are the man.
-
- Posts: 13
- Joined: Mon Mar 11, 2013 8:48 am
Re: Picture Methods/Properties through Scripts
Ok, follow up question. Is there a good way to convert type System.Drawing.Bitmap to Neo.ApplicationFramework.Interfaces.INativeBitmap?
Re: Picture Methods/Properties through Scripts
Not sure why you want to convert it, but INativeBitmap is a Interface and System.Drawing.Bitmap is a class.
A class can implement a Interface but not be converted to one.
A class can implement a Interface but not be converted to one.