本文整理汇总了C#中IImage.Load方法的典型用法代码示例。如果您正苦于以下问题:C# IImage.Load方法的具体用法?C# IImage.Load怎么用?C# IImage.Load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IImage
的用法示例。
在下文中一共展示了IImage.Load方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
public void Load(string filename)
{
// I ignore the file name :)
_textPage1 = "This is the text of page 1, that has no images.";
_textPage2 = "This is another text, on page 2, with a single image.";
_imagePage2 = new AccessCounterProxy(new ProtectionProxy(new ProxyImage()));
_imagePage2.Load("flower.jpg");
}
示例2: Show
public string Show()
{
if (_realSubject == null)
{
_realSubject = new JpgImage();
_realSubject.Load(_filename);
}
return _realSubject.Show();
}
示例3: FirstTimeImageCacheEntry
public FirstTimeImageCacheEntry(IImage image, string saveLocation, int decodeWidth = 300, int decodeHeight = 300)
{
_image = image;
_saveLocation = saveLocation;
_decodeWidth = decodeWidth;
_decodeHeight = decodeHeight;
_image.FinishedLoading += OnFinishedLoading;
_image.Load();
_id = image.ID;
}