本文整理汇总了C#中Helpers.getImage方法的典型用法代码示例。如果您正苦于以下问题:C# Helpers.getImage方法的具体用法?C# Helpers.getImage怎么用?C# Helpers.getImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helpers
的用法示例。
在下文中一共展示了Helpers.getImage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleImageLoadedEvent
public void HandleImageLoadedEvent(Object sender, Helpers.ImageLoadedEventArgs e)
{
//random shit
/*foreach (MapRegion mr in regions)
{
if (r.Next(0, 3) == 1)
{
mr.AddArtwork(e.getImage());
}
}*/
//add image to region -- TryTexHit(x,y (0,1)) in mapregion
foreach (MapButton button in e.getImage().getLocButtons())
{
foreach (MapRegion mr in regions)
{
if (mr.TryTextureHit(button.X, button.Y))
{
mr.AddArtwork(button);
}
}
}
}
示例2: HandleImageSelectedEvent
//This method is called when the user select a new image
public void HandleImageSelectedEvent(Object sender, Helpers.ImageSelectedEventArgs e)
{
data = e.getImage();
this.hideButtons();
infoLabel.Text = "";
// infoLabel1.Text = "";
List<String> locInfo = e.getImage().getLocButtonInfo();
foreach (String info in locInfo)
{
this.createButtons(info);
}
}
示例3: HandleImageSelectedEvent
public void HandleImageSelectedEvent(Object sender, Helpers.ImageSelectedEventArgs e)
{
foreach (MapRegion mr in regions)
{
mr.HideButtons();
foreach (ImageData data in mr.getArtworks())
{
if (data.Equals(e.getImage()))
{
mr.flash();
mr.ShowButton(e.getImage());
}
}
}
}