📄 showpictureclass.cs
字号:
/*
* MATLAB Compiler: 4.6 (R2007a)
* Date: Tue Apr 08 21:32:58 2008
* Arguments: "-B" "macro_default" "-W" "dotnet:ShowPicture,ShowPictureclass,0.0,private"
* "-d" "C:\Documents and Settings\Admin\My Documents\MATLAB\ShowPicture\src" "-T"
* "link:lib" "-v" "class{ShowPictureclass:C:\Documents and Settings\Admin\My
* Documents\MATLAB\ShowPicture.m}"
*/
using System;
using System.Reflection;
using MathWorks.MATLAB.NET.Arrays;
using MathWorks.MATLAB.NET.Utility;
[assembly: System.Reflection.AssemblyVersion("0.0.*")]
#if SHARED
[assembly: System.Reflection.AssemblyKeyFile(@"")]
#endif
namespace ShowPicture
{
/// <summary>
/// The ShowPictureclass class provides a CLS compliant interface to the M-functions
/// contained in the files:
/// <newpara></newpara>
/// C:\Documents and Settings\Admin\My Documents\MATLAB\ShowPicture.m
/// <newpara></newpara>
/// matlabrc.m
/// <newpara></newpara>
/// dirname.m
/// <newpara></newpara>
/// deployprint.m
/// <newpara></newpara>
/// printdlg.m
/// </summary>
/// <remarks>
/// @Version 0.0
/// </remarks>
public class ShowPictureclass : IDisposable
{
#region Constructors
/// <summary internal= "true">
/// The static constructor instantiates and initializes the MATLAB Common Runtime
/// instance.
/// </summary>
static ShowPictureclass()
{
Assembly assembly= Assembly.GetExecutingAssembly();
string ctfFilePath= assembly.Location;
int lastDelimeter= ctfFilePath.LastIndexOf(@"\");
ctfFilePath= ctfFilePath.Remove(lastDelimeter, (ctfFilePath.Length - lastDelimeter));
if (MWMCR.InitializeApplication(new string[]{}))
{
mcr= new MWMCR(MCRComponentState.MCC_ShowPicture_name_data,
MCRComponentState.MCC_ShowPicture_root_data,
MCRComponentState.MCC_ShowPicture_public_data,
MCRComponentState.MCC_ShowPicture_session_data,
MCRComponentState.MCC_ShowPicture_matlabpath_data,
MCRComponentState.MCC_ShowPicture_classpath_data,
MCRComponentState.MCC_ShowPicture_libpath_data,
MCRComponentState.MCC_ShowPicture_mcr_application_options,
MCRComponentState.MCC_ShowPicture_mcr_runtime_options,
MCRComponentState.MCC_ShowPicture_mcr_pref_dir,
MCRComponentState.MCC_ShowPicture_set_warning_state,
ctfFilePath, true);
}
}
/// <summary>
/// Constructs a new instance of the ShowPictureclass class.
/// </summary>
public ShowPictureclass()
{
}
#endregion Constructors
#region Finalize
/// <summary internal= "true">
/// Class destructor called by the CLR garbage collector.
/// </summary>
~ShowPictureclass()
{
Dispose(false);
}
/// <summary>
/// Frees the native resources associated with this object
/// </summary>
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
/// <summary internal= "true">
/// Internal dispose function
/// </summary>
protected virtual void Dispose(bool disposing)
{
if (!disposed)
{
disposed= true;
if (disposing)
{
// Free managed resources;
}
// Free native resources
}
}
#endregion Finalize
#region Methods
/// <summary>
/// Provides a void output, 0-input interface to the ShowPicture M-function.
/// </summary>
/// <remarks>
/// </remarks>
///
public void ShowPicture()
{
mcr.EvaluateFunction(0, "ShowPicture");
}
/// <summary>
/// Provides a void output, 1-input interface to the ShowPicture M-function.
/// </summary>
/// <remarks>
/// </remarks>
/// <param name="String">Input argument #1</param>
///
public void ShowPicture(MWArray String)
{
mcr.EvaluateFunction(0, "ShowPicture", String);
}
/// <summary>
/// Provides the standard 0-input interface to the ShowPicture M-function.
/// </summary>
/// <remarks>
/// </remarks>
/// <param name="numArgsOut">The number of output arguments to return.</param>
/// <returns>An Array of length "numArgsOut" containing the output
/// arguments.</returns>
///
public MWArray[] ShowPicture(int numArgsOut)
{
return mcr.EvaluateFunction(numArgsOut, "ShowPicture");
}
/// <summary>
/// Provides the standard 1-input interface to the ShowPicture M-function.
/// </summary>
/// <remarks>
/// </remarks>
/// <param name="numArgsOut">The number of output arguments to return.</param>
/// <param name="String">Input argument #1</param>
/// <returns>An Array of length "numArgsOut" containing the output
/// arguments.</returns>
///
public MWArray[] ShowPicture(int numArgsOut, MWArray String)
{
return mcr.EvaluateFunction(numArgsOut, "ShowPicture", String);
}
#endregion Methods
#region Class Members
private static MWMCR mcr= null;
private bool disposed= false;
#endregion Class Members
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -