PDFTool  7.0
Public Types | Public Member Functions | List of all members
PdfTk::PtlParamOptimizeImageMono Class Reference

モノクロ画像の最適化を表現したクラスです。
デフォルト値
SourcePPI:450
TargetPPI:300
DownSampling:DOWNSAMPLING_BICUBIC
Compress:COMPRESS_AUTO
Quality:80 More...

#include <PtlParamOptimizeImageMono.h>

Inheritance diagram for PdfTk::PtlParamOptimizeImageMono:
Inheritance graph
[legend]
Collaboration diagram for PdfTk::PtlParamOptimizeImageMono:
Collaboration graph
[legend]

Public Types

enum  COMPRESS_TYPE {
  COMPRESS_SAME, COMPRESS_AUTO, COMPRESS_JBIG2, COMPRESS_CCITT3,
  COMPRESS_CCITT4, COMPRESS_ZLIB, COMPRESS_RUNLENGTH
}
 
- Public Types inherited from PdfTk::PtlParamOptimizeImageDownSampling
enum  DOWNSAMPLING_TYPE { DOWNSAMPLING_NONE = 0, DOWNSAMPLING_AVERAGE = 1, DOWNSAMPLING_SUBSAMPLING = 2, DOWNSAMPLING_BICUBIC = 3 }
 ダウンサンプのタイプ More...
 
enum  OPTIMIZE_IMAGE_TYPE { OPTIMIZE_IMAGE_COLOR = 1, OPTIMIZE_IMAGE_GRAYSCALE = 2, OPTIMIZE_IMAGE_MONO = 3 }
 画像最適化のタイプ More...
 

Public Member Functions

 PtlParamOptimizeImageMono ()
 コンストラクタ More...
 
 PtlParamOptimizeImageMono (const PtlParamOptimizeImageMono &obj)
 コピーコンストラクタ More...
 
 ‾PtlParamOptimizeImageMono ()
 デストラクタ
 
PtlParamOptimizeImageMonooperator= (const PtlParamOptimizeImageMono &obj)
 コピーオペレータ More...
 
void setCompress (COMPRESS_TYPE type)
 圧縮方法を設定。 More...
 
- Public Member Functions inherited from PdfTk::PtlParamOptimizeImageDownSampling
int getHandle () const
 
 PtlParamOptimizeImageDownSampling (OPTIMIZE_IMAGE_TYPE type)
 コンストラクタ More...
 
 PtlParamOptimizeImageDownSampling (const PtlParamOptimizeImageDownSampling &obj)
 コピーコンストラクタ alias copy More...
 
virtual ‾PtlParamOptimizeImageDownSampling ()
 デストラクタ
 
PtlParamOptimizeImageDownSamplingoperator= (const PtlParamOptimizeImageDownSampling &obj)
 コピーオペレータ alias copy More...
 
OPTIMIZE_IMAGE_TYPE getType () const
 画像最適化のタイプを取得。 More...
 
void setSourcePPI (int ppi)
 これ以上のPPIならダウンサンプリングを行うPPI値を設定。 More...
 
void setTargetPPI (int ppi)
 ダウンサンプリング後のPPI値を設定。 More...
 
void setDownSampling (DOWNSAMPLING_TYPE type)
 ダウンサンプリング方法を設定。 More...
 
void setMinDownSamplingRate (float minRate)
 ダウンサンプリング率の下限値を設定。 More...
 

Detailed Description

モノクロ画像の最適化を表現したクラスです。
デフォルト値
SourcePPI:450
TargetPPI:300
DownSampling:DOWNSAMPLING_BICUBIC
Compress:COMPRESS_AUTO
Quality:80

Constructor & Destructor Documentation

◆ PtlParamOptimizeImageMono() [1/2]

PdfTk::PtlParamOptimizeImageMono::PtlParamOptimizeImageMono ( )

コンストラクタ

Exceptions
PtlException

◆ PtlParamOptimizeImageMono() [2/2]

PdfTk::PtlParamOptimizeImageMono::PtlParamOptimizeImageMono ( const PtlParamOptimizeImageMono obj)

コピーコンストラクタ

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

Member Function Documentation

◆ operator=()

PtlParamOptimizeImageMono& PdfTk::PtlParamOptimizeImageMono::operator= ( const PtlParamOptimizeImageMono obj)

コピーオペレータ

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

◆ setCompress()

void PdfTk::PtlParamOptimizeImageMono::setCompress ( COMPRESS_TYPE  type)

圧縮方法を設定。

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

Parameters
typeCOMPRESS_TYPE値
Exceptions
PtlException