Download ScannerTest.zip, last updated 06/11/2020 (1.38 MB)

Download
  • md5: e7275805cdf93e2f8240e6e0ee5ca17a
  • sha1: 2153ecf3bd4cd364692127f90c2be83d7b7fe25d
  • sha256: c8ce412bbf8f88594e975d27e25bb0b767e6a1c4bcb9471a4eb749a3a9ed556e
using System.IO;

// Loading the color palette from a BBM/LBM image file using C
// https://www.cyotek.com/blog/loading-the-color-palette-from-a-bbm-lbm-image-file-using-csharp

// Copyright © 2014 Cyotek Ltd. All Rights Reserved.

// This work is licensed under the MIT License.
// See LICENSE.TXT for the full text

// Found this example useful?
// https://www.paypal.me/cyotek

namespace Cyotek.Demo
{
  internal class FileInfo
  {
    #region Private Fields

    private readonly string _fullPath;

    #endregion Private Fields

    #region Public Constructors

    public FileInfo(string fullPath)
    {
      _fullPath = fullPath;
    }

    #endregion Public Constructors

    #region Public Properties

    public string FullPath
    {
      get { return _fullPath; }
    }

    #endregion Public Properties

    #region Public Methods

    /// <summary>
    /// Returns a string that represents the current object.
    /// </summary>
    /// <returns>
    /// A string that represents the current object.
    /// </returns>
    public override string ToString()
    {
      return Path.GetFileName(_fullPath);
    }

    #endregion Public Methods
  }
}

Donate

Donate