本文整理汇总了C#中IPluginHost.Get_Sprite方法的典型用法代码示例。如果您正苦于以下问题:C# IPluginHost.Get_Sprite方法的具体用法?C# IPluginHost.Get_Sprite怎么用?C# IPluginHost.Get_Sprite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPluginHost
的用法示例。
在下文中一共展示了IPluginHost.Get_Sprite方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SpriteControl
public SpriteControl(IPluginHost pluginHost)
{
InitializeComponent();
this.pluginHost = pluginHost;
this.sprite = pluginHost.Get_Sprite();
this.image = pluginHost.Get_Image();
this.palette = pluginHost.Get_Palette();
Read_Language();
Update_Info();
}
示例2: TexSprites
public TexSprites(IPluginHost pluginHost, string imagefile, string infofile)
{
if (!pluginHost.Get_Sprite().Loaded)
throw new FileLoadException("Please, load first the NCER file");
InitializeComponent();
images = imagefile;
ReadInfo(infofile);
this.pluginHost = pluginHost;
numImg.Maximum = infos.Length - 1;
label2.Text = "of " + (infos.Length - 1).ToString();
numImg_ValueChanged(null, null);
}
示例3: AnimationControl
public AnimationControl(IPluginHost pluginHost, NANR ani)
{
InitializeComponent();
Read_Language();
this.pluginHost = pluginHost;
this.palette = pluginHost.Get_Palette();
this.image = pluginHost.Get_Image();
this.sprite = pluginHost.Get_Sprite();
this.ani = ani;
isAni = true;
if (ani.Struct.abnk.nBanks == 0)
{
MessageBox.Show("No animations.");
isAni = false;
tempo.Enabled = false;
comboAni.Enabled = false;
btnNext.Enabled = false;
btnPlay.Enabled = false;
btnPrevious.Enabled = false;
btnSave.Enabled = false;
btnStop.Enabled = false;
txtTime.Enabled = false;
checkCeldas.Enabled = false;
checkEntorno.Enabled = false;
checkImage.Enabled = false;
checkNumeros.Enabled = false;
checkTransparencia.Enabled = false;
}
for (int i = 0; i < ani.Names.Length; i++)
comboAni.Items.Add(ani.Names[i]);
if (isAni)
comboAni.SelectedIndex = 0;
ShowInfo();
Get_Ani();
tempo.Stop();
tempo.Interval = Convert.ToInt32(txtTime.Text);
if (isAni)
aniBox.Image = bitAni[0];
}