PDFTool.NET 7.0
PdfTkNet::PtlParamOptimizeImageGrayScale Class Reference

グレースケール画像の最適化を表現したクラスです。
デフォルト値
SourcePPI:225
TargetPPI:150
DownSampling:DOWNSAMPLING_BICUBIC
Compress:COMPRESS_AUTO
Quality:QUALITY_MIDDLE More...

#include <NetParamOptimizeImageGrayScale.h>

Inheritance diagram for PdfTkNet::PtlParamOptimizeImageGrayScale:
Collaboration diagram for PdfTkNet::PtlParamOptimizeImageGrayScale:

Public Types

enum class  COMPRESS_TYPE {
  COMPRESS_SAME , COMPRESS_AUTO , COMPRESS_JPEG2K , COMPRESS_JPEG ,
  COMPRESS_ZLIB
}
enum class  QUALITY_TYPE {
  QUALITY_MIN = 1 , QUALITY_LOW = 2 , QUALITY_MIDDLE = 3 , QUALITY_HIGH = 4 ,
  QUALITY_MAX = 5
}
Public Types inherited from PdfTkNet::PtlParamOptimizeImageDownSampling
enum class  DOWNSAMPLING_TYPE { DOWNSAMPLING_NONE = 0 , DOWNSAMPLING_AVERAGE = 1 , DOWNSAMPLING_SUBSAMPLING = 2 , DOWNSAMPLING_BICUBIC = 3 }
 ダウンサンプのタイプ More...
enum class  OPTIMIZE_IMAGE_TYPE { OPTIMIZE_IMAGE_COLOR = 1 , OPTIMIZE_IMAGE_GRAYSCALE = 2 , OPTIMIZE_IMAGE_MONO = 3 }
 画像最適化のタイプ More...

Public Member Functions

 PtlParamOptimizeImageGrayScale ()
 コンストラクタ
 PtlParamOptimizeImageGrayScale (PtlParamOptimizeImageGrayScale^ obj)
 コピーコンストラクタ alias copy
 ‾PtlParamOptimizeImageGrayScale ()
 デストラクタ
 !PtlParamOptimizeImageGrayScale ()
 ファイナライザ。
PtlParamOptimizeImageGrayScale operator= (PtlParamOptimizeImageGrayScale^ obj)
 コピーオペレータ alias copy
void setCompress (COMPRESS_TYPE type)
 圧縮方法を設定。
void setQuality (QUALITY_TYPE quality)
 画像品質を設定。
Public Member Functions inherited from PdfTkNet::PtlParamOptimizeImageDownSampling
PdfTk::PtlParamOptimizeImageDownSampling * getNative ()
 PtlParamOptimizeImageDownSampling (OPTIMIZE_IMAGE_TYPE type)
 コンストラクタ
 PtlParamOptimizeImageDownSampling (PtlParamOptimizeImageDownSampling^ obj)
 コピーコンストラクタ
virtual ‾PtlParamOptimizeImageDownSampling ()
 デストラクタ
 !PtlParamOptimizeImageDownSampling ()
 ファイナライザ。
PtlParamOptimizeImageDownSampling operator= (PtlParamOptimizeImageDownSampling^ obj)
 コピーオペレータ
OPTIMIZE_IMAGE_TYPE getType ()
 画像最適化のタイプを取得。
void setSourcePPI (int ppi)
 これ以上のPPIならダウンサンプリングを行うPPI値を設定。
void setTargetPPI (int ppi)
 ダウンサンプリング後のPPI値を設定。
void setDownSampling (DOWNSAMPLING_TYPE type)
 ダウンサンプリング方法を設定。
void setMinDownSamplingRate (float minRate)
 ダウンサンプリング率の下限値を設定。

Additional Inherited Members

Protected Attributes inherited from PdfTkNet::PtlParamOptimizeImageDownSampling
PdfTk::PtlParamOptimizeImageDownSampling * m_native

Detailed Description

グレースケール画像の最適化を表現したクラスです。
デフォルト値
SourcePPI:225
TargetPPI:150
DownSampling:DOWNSAMPLING_BICUBIC
Compress:COMPRESS_AUTO
Quality:QUALITY_MIDDLE

Constructor & Destructor Documentation

◆ PtlParamOptimizeImageGrayScale() [1/2]

PdfTkNet::PtlParamOptimizeImageGrayScale::PtlParamOptimizeImageGrayScale ( )

コンストラクタ

Exceptions
PtlException

◆ PtlParamOptimizeImageGrayScale() [2/2]

PdfTkNet::PtlParamOptimizeImageGrayScale::PtlParamOptimizeImageGrayScale ( PtlParamOptimizeImageGrayScale^ obj)

コピーコンストラクタ alias copy

Parameters
objコピー元オブジェクト。
Exceptions
PtlException

Member Function Documentation

◆ operator=()

PtlParamOptimizeImageGrayScale PdfTkNet::PtlParamOptimizeImageGrayScale::operator= ( PtlParamOptimizeImageGrayScale^ obj)

コピーオペレータ alias copy

Parameters
objコピー元オブジェクト。

◆ setCompress()

void PdfTkNet::PtlParamOptimizeImageGrayScale::setCompress ( COMPRESS_TYPE type)

圧縮方法を設定。

設定しない場合はデフォルト値としてCOMPRESS_AUTOが使用されます。
COMPRESS_SAMEを設定した場合、対象のFilterは下記となります。
FlateDecode
LZWDecode
DCTDecode
JPXDecode

Parameters
typeCOMPRESS_TYPE値
Exceptions
PtlException

◆ setQuality()

void PdfTkNet::PtlParamOptimizeImageGrayScale::setQuality ( QUALITY_TYPE quality)

画像品質を設定。

設定しない場合はデフォルト値としてQUALITY_MIDDLEが使用されます。

Parameters
quality画像品質
Exceptions
PtlException