関数 |
template<class T , class Allocator > |
bool | mist::read_bmp (array2< T, Allocator > &image, const std::string &filename) |
| BMP画像をMISTコンテナに読み込む
|
template<class T , class Allocator > |
bool | mist::read_bmp (array2< T, Allocator > &image, const std::wstring &filename) |
| BMP画像をMISTコンテナに読み込む
|
template<class T , class Allocator > |
bool | mist::write_bmp (const array2< T, Allocator > &image, const std::string &filename, typename array2< T, Allocator >::size_type bmp_bits=24) |
| MISTコンテナの画像をBMP形式でファイルに出力する
|
template<class T , class Allocator > |
bool | mist::write_bmp (const array2< T, Allocator > &image, const std::wstring &filename, typename array2< T, Allocator >::size_type bmp_bits=24) |
| MISTコンテナの画像をBMP形式でファイルに出力する
|
説明
BMPファイルを読み込んで,MISTコンテナへ格納する. また,MISTコンテナからBMPファイルへの書き出しをサポート. 1,4,8,24,32ビットのビットマップに対応. 圧縮されたビットマップは未サポート.
関数
template<class T , class Allocator >
bool mist::read_bmp |
( |
array2< T, Allocator > & |
image, |
|
|
const std::string & |
filename |
|
) |
| |
BMP画像をMISTコンテナに読み込む
- 注意
- RLE圧縮のかかったBMPには未対応
- 引数
-
[out] | image | … 画像を読み込む先のMISTコンテナ |
[in] | filename | … 入力ファイル名 |
- 戻り値
-
true | … 画像の読み込みに成功 |
false | … 画像の読み込みに失敗 |
参照元 mist::read_bmp(), と mist::read_image().
template<class T , class Allocator >
bool mist::read_bmp |
( |
array2< T, Allocator > & |
image, |
|
|
const std::wstring & |
filename |
|
) |
| |
BMP画像をMISTコンテナに読み込む
- 注意
- RLE圧縮のかかったBMPには未対応
- 引数
-
[out] | image | … 画像を読み込む先のMISTコンテナ |
[in] | filename | … 入力ファイル名 |
- 戻り値
-
true | … 画像の読み込みに成功 |
false | … 画像の読み込みに失敗 |
参照先 mist::read_bmp(), と mist::wstr2str().
template<class T , class Allocator >
bool mist::write_bmp |
( |
const array2< T, Allocator > & |
image, |
|
|
const std::string & |
filename, |
|
|
typename array2< T, Allocator >::size_type |
bmp_bits = 24 |
|
) |
| |
MISTコンテナの画像をBMP形式でファイルに出力する
- 引数
-
[in] | image | … 出力画像を保持するMISTコンテナ |
[in] | filename | … 出力ファイル名 |
[in] | bmp_bits | … 以下のビットマップのビット数のいずれか |
- 1ビット … 白黒の2値ビットマップ
- 4ビット … 8色のカラーテーブルを持つビットマップ
- 8ビット … 256色のカラーテーブルを持つビットマップ
- 24ビット … フルカラービットマップ
- 32ビット … フルカラービットマップ(アルファチャンネル付)
- 戻り値
-
true | … 画像の書き込みに成功 |
false | … 画像の書き込みに失敗 |
参照元 mist::write_bmp(), と mist::write_image().
template<class T , class Allocator >
bool mist::write_bmp |
( |
const array2< T, Allocator > & |
image, |
|
|
const std::wstring & |
filename, |
|
|
typename array2< T, Allocator >::size_type |
bmp_bits = 24 |
|
) |
| |
MISTコンテナの画像をBMP形式でファイルに出力する
- 引数
-
[in] | image | … 出力画像を保持するMISTコンテナ |
[in] | filename | … 出力ファイル名 |
[in] | bmp_bits | … 以下のビットマップのビット数のいずれか |
- 1ビット … 白黒の2値ビットマップ
- 4ビット … 8色のカラーテーブルを持つビットマップ
- 8ビット … 256色のカラーテーブルを持つビットマップ
- 24ビット … フルカラービットマップ
- 32ビット … フルカラービットマップ(アルファチャンネル付)
- 戻り値
-
true | … 画像の書き込みに成功 |
false | … 画像の書き込みに失敗 |
参照先 mist::write_bmp(), と mist::wstr2str().