public override FastBitmap GetBitmap() { string resolvedFileName = FileSourceHelper.ResolveFileName(FileName); if (File.Exists(resolvedFileName)) { return(new FastBitmap(resolvedFileName)); } return(null); }
public override FastBitmap GetBitmap(ImageGenerationContext context) { string resolvedFileName = FileSourceHelper.ResolveFileName(context, FileName); if (File.Exists(resolvedFileName)) { return(new FastBitmap(resolvedFileName)); } return(null); }