01-27-2008 08:37 PM
01-28-2008 02:08 AM
It looks to me as if you need to point to an existing instance of Size. Does that class have a constructor?
If you want a VI which resizes arrays and images inside LabVIEW, you can have a look here, but it's not a smart algorithm and is lossy.
01-28-2008 02:48 AM
01-28-2008 03:01 AM - edited 01-28-2008 03:01 AM
Hi Vasanth
is the constant in your picture only for the picture or real in your code? Is the "Tiff" Refnum valid?
Mike
01-28-2008 03:08 AM
01-28-2008 03:42 AM
Hello vforvasanth,
Does the Processor class have a Method like getSize which returns an object of the class size? Set the attributes height and width of this object and take this object as the newSize argument of the Resize method.
The class SaveOptions for the method Save of ImageX class could work accordingly.
If tere is no such method, there may be a similar one or one in an other class. Maybe there is a constructor for SaveOptions. An object of the class SaveOptionsTiff you get from the property Tiff (as you already do).
You have to find a way to create the objects of the proper class. A constant does not work, because its value is NULL (at least something similar).
Casting to a subclass does not work for your case. (It only works if the object has the type of the subclass and has been casted to the superclass. You must be able to create the subclass first.)
I hope this helps a little bit. Good luck!
Greetings,
shb
01-28-2008 06:07 AM
Do you have any sample .NET code for doing this?
01-28-2008 06:52 AM - edited 01-28-2008 06:54 AM
Hi tst,
I mean something like this:

Does this image say more than my thousand words? ![]()
Greetings,
shb
01-28-2008 07:20 AM
01-28-2008 09:56 AM