⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imageinfo.cs

📁 一个C#开发的类似PHOTOSHOP的软件,用到了很多图形算法.
💻 CS
字号:
using System;
using System.Reflection;

namespace PhotoSprite.ImageProcessing
{
  /// <summary>
  /// PhotoSprite 图像信息基类
  /// </summary>
  public class ImageInfo
  {
    /// <summary>
    /// 每像素字节数 BytesPerPixel
    /// </summary>
    public const int BPP = 4;

    /// <summary>
    /// 每两像素字节数 BytesPer2Pixels
    /// </summary>
    public const int BP2P = 8;


    /**************************************************
     * 
     * 组件信息
     * 
     * 产品名、版本号
     * 
     **************************************************/

    /// <summary>
    /// 获取 PhotoSprite 产品名
    /// </summary>
    public string Product
    {
      get
      {
        object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
        if (attributes.Length == 0)
          return "";

        return ((AssemblyProductAttribute)attributes[0]).Product;
      }
    }

    /// <summary>
    /// 获取 PhotoSprite 当前版本号
    /// </summary>
    public string Version
    {
      get
      {
        return Assembly.GetExecutingAssembly().GetName().Version.ToString();
      }
    }


  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -