ResolveFileName() public static method

public static ResolveFileName ( string filename ) : string
filename string
return string
コード例 #1
0
        public override FastBitmap GetBitmap()
        {
            string resolvedFileName = FileSourceHelper.ResolveFileName(FileName);

            if (File.Exists(resolvedFileName))
            {
                return(new FastBitmap(resolvedFileName));
            }
            return(null);
        }
コード例 #2
0
        public override FastBitmap GetBitmap(ImageGenerationContext context)
        {
            string resolvedFileName = FileSourceHelper.ResolveFileName(context, FileName);

            if (File.Exists(resolvedFileName))
            {
                return(new FastBitmap(resolvedFileName));
            }
            return(null);
        }