PDFTool.NET  6.0
Public Types | Public Member Functions | Protected Attributes | List of all members
PdfTkNet::PtlParamOptimizeImageDownSampling Class Reference

画像の最適化を表現したクラスです。
すべての画像最適化クラスのベースクラスです。 More...

#include <NetParamOptimizeImageDownSampling.h>

Inheritance diagram for PdfTkNet::PtlParamOptimizeImageDownSampling:
Inheritance graph
[legend]
Collaboration diagram for PdfTkNet::PtlParamOptimizeImageDownSampling:
Collaboration graph
[legend]

Public Types

enum  DOWNSAMPLING_TYPE { DOWNSAMPLING_TYPE::DOWNSAMPLING_NONE = 0, DOWNSAMPLING_TYPE::DOWNSAMPLING_AVERAGE = 1, DOWNSAMPLING_TYPE::DOWNSAMPLING_SUBSAMPLING = 2, DOWNSAMPLING_TYPE::DOWNSAMPLING_BICUBIC = 3 }
 ダウンサンプのタイプ More...
 
enum  OPTIMIZE_IMAGE_TYPE { OPTIMIZE_IMAGE_TYPE::OPTIMIZE_IMAGE_COLOR = 1, OPTIMIZE_IMAGE_TYPE::OPTIMIZE_IMAGE_GRAYSCALE = 2, OPTIMIZE_IMAGE_TYPE::OPTIMIZE_IMAGE_MONO = 3 }
 画像最適化のタイプ More...
 

Public Member Functions

PdfTk::PtlParamOptimizeImageDownSampling * getNative ()
 
 PtlParamOptimizeImageDownSampling (OPTIMIZE_IMAGE_TYPE type)
 コンストラクタ More...
 
 PtlParamOptimizeImageDownSampling (PtlParamOptimizeImageDownSampling^ obj)
 コピーコンストラクタ More...
 
virtual ‾PtlParamOptimizeImageDownSampling ()
 デストラクタ
 
 !PtlParamOptimizeImageDownSampling ()
 ファイナライザ。
 
PtlParamOptimizeImageDownSampling operator= (PtlParamOptimizeImageDownSampling^ obj)
 コピーオペレータ More...
 
OPTIMIZE_IMAGE_TYPE getType ()
 画像最適化のタイプを取得。 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...
 

Protected Attributes

PdfTk::PtlParamOptimizeImageDownSampling * m_native
 

Detailed Description

画像の最適化を表現したクラスです。
すべての画像最適化クラスのベースクラスです。

Member Enumeration Documentation

◆ DOWNSAMPLING_TYPE

ダウンサンプのタイプ

Enumerator
DOWNSAMPLING_NONE 

ダウンサンプリングしない

DOWNSAMPLING_AVERAGE 

バイリニア法

DOWNSAMPLING_SUBSAMPLING 

ニアレストネイバー法

DOWNSAMPLING_BICUBIC 

バイキュービック法(デフォルト値)

◆ OPTIMIZE_IMAGE_TYPE

画像最適化のタイプ

Enumerator
OPTIMIZE_IMAGE_COLOR 

カラー画像

OPTIMIZE_IMAGE_GRAYSCALE 

グレースケール画像

OPTIMIZE_IMAGE_MONO 

モノクロ画像

Constructor & Destructor Documentation

◆ PtlParamOptimizeImageDownSampling() [1/2]

PdfTkNet::PtlParamOptimizeImageDownSampling::PtlParamOptimizeImageDownSampling ( OPTIMIZE_IMAGE_TYPE  type)

コンストラクタ

通常、サブクラスのコンストラクタから使います。

Parameters
typeタイプ
Exceptions
PtlException

◆ PtlParamOptimizeImageDownSampling() [2/2]

PdfTkNet::PtlParamOptimizeImageDownSampling::PtlParamOptimizeImageDownSampling ( PtlParamOptimizeImageDownSampling obj)

コピーコンストラクタ

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

Member Function Documentation

◆ getType()

OPTIMIZE_IMAGE_TYPE PdfTkNet::PtlParamOptimizeImageDownSampling::getType ( )

画像最適化のタイプを取得。

Returns
画像最適化のタイプ
Exceptions
PtlException

◆ operator=()

PtlParamOptimizeImageDownSampling PdfTkNet::PtlParamOptimizeImageDownSampling::operator= ( PtlParamOptimizeImageDownSampling obj)

コピーオペレータ

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

◆ setDownSampling()

void PdfTkNet::PtlParamOptimizeImageDownSampling::setDownSampling ( DOWNSAMPLING_TYPE  type)

ダウンサンプリング方法を設定。

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

Parameters
typeDOWNSAMPLING_TYPE値
Exceptions
PtlException

◆ setMinDownSamplingRate()

void PdfTkNet::PtlParamOptimizeImageDownSampling::setMinDownSamplingRate ( float  minRate)

ダウンサンプリング率の下限値を設定。

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

Parameters
minRate下限値
Exceptions
PtlException

◆ setSourcePPI()

void PdfTkNet::PtlParamOptimizeImageDownSampling::setSourcePPI ( int  ppi)

これ以上のPPIならダウンサンプリングを行うPPI値を設定。

設定しない場合はデフォルト値として
カラー画像:225
グレースケール画像:225
モノクロ画像:450
が使用されます。

Parameters
ppiPPI値
Exceptions
PtlException

◆ setTargetPPI()

void PdfTkNet::PtlParamOptimizeImageDownSampling::setTargetPPI ( int  ppi)

ダウンサンプリング後のPPI値を設定。

設定しない場合はデフォルト値として
カラー画像:150
グレースケール画像:150
モノクロ画像:300
が使用されます。

Parameters
ppiPPI値
Exceptions
PtlException