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

📄 flatedecodeparam.cs

📁 PDF文档生成解析使用的库,可以用来改写自己的文档格式
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;

namespace AnotherPDFLib
{
	public partial class FlateDecodeParam : PdfDictionary
	{
		/// <summary>
		/// A code that selects the predictor algorithm, if any.
		/// </summary>
		public int Predictor
		{
			get
			{
				PdfInteger predictor = this["Predictor"] as PdfInteger;
				if (predictor != null)
				{
					return predictor.Value;
				}
				return 1;
			}
			set
			{
				this["Predictor"] = new PdfInteger(value);
			}
		}

		/// <summary>
		/// The number of interleaved color components per sample.
		/// </summary>
		public int Colors
		{
			get
			{
				PdfInteger colors = this["Colors"] as PdfInteger;
				if (colors != null)
				{
					return colors.Value;
				}
				return 1;
			}
			set
			{
				this["Colors"] = new PdfInteger(value);
			}
		}

		/// <summary>
		/// The number of bits used to represent each color component in a sample.
		/// </summary>
		public int BitsPerComponent
		{
			get
			{
				PdfInteger bitspercomponent = this["BitsPerComponent"] as PdfInteger;
				if (bitspercomponent != null)
				{
					return bitspercomponent.Value;
				}
				return 8;
			}
			set
			{
				this["BitsPerComponent"] = new PdfInteger(value);
			}
		}

		/// <summary>
		/// The number of samples in each row.
		/// </summary>
		public int Columns
		{
			get
			{
				PdfInteger columns = this["Columns"] as PdfInteger;
				if (columns != null)
				{
					return columns.Value;
				}
				return 1;
			}
			set
			{
				this["Columns"] = new PdfInteger(value);
			}
		}

	}
}

⌨️ 快捷键说明

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