Elight.Utility/Files/ICOGen/BitmapInfo.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace Elight.Utility.Files.ICOGen
{
public class BitmapInfo
{
private uint biSize = 40;
private ushort biPlanes = 1;
private uint biCompression = 0;
public IList<Color> ColorTable = new List<Color>();
/// <summary>
/// 占4位,位图信息头(Bitmap Info Header)的长度,一般为$28
/// </summary>
public uint InfoSize { get { return biSize; } set { biSize = value; } }
/// <summary>
/// 占4位,位图的宽度,以象素为单位
/// </summary>
public uint Width { get; set; }
/// <summary>
/// 占4位,位图的高度,以象素为单位
/// </summary>
public uint Height { get; set; }
/// <summary>
/// 占2位,位图的位面数(注:该值将总是1)
/// </summary>
public ushort Planes { get { return biPlanes; } set { biPlanes = value; } }
/// <summary>
/// 占2位,每个象素的位数,设为32(32Bit位图)
/// </summary>
public ushort BitCount { get; set; }
/// <summary>
/// 占4位,压缩说明,设为0(不压缩)
/// </summary>
public uint Compression { get { return biCompression; } set { biCompression = value; } }
/// <summary>
/// 占4位,用字节数表示的位图数据的大小。该数必须是4的倍数
/// </summary>
public uint SizeImage { get; set; }
/// <summary>
/// 占4位,用象素/米表示的水平分辨率
/// </summary>
public uint XPelsPerMeter { get; set; }
/// <summary>
/// 占4位,用象素/米表示的垂直分辨率
/// </summary>
public uint YPelsPerMeter { get; set; }
/// <summary>
/// 占4位,位图使用的颜色数
/// </summary>
public uint ClrUsed { get; set; }
/// <summary>
/// 占4位,指定重要的颜色数(到此处刚好40个字节,$28)
/// </summary>
public uint ClrImportant { get; set; }
private Bitmap _IconBitMap;
/// <summary>
/// 图形
后面还有 200 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。