|
LIBEUNOMIA
|
名前空間 | |
| namespace | debug |
| namespace | implement_ |
クラス | |
| class | AddBrendCopier |
| ImageBuffer<>::blt()で用ゐる加算ブレンドのための函數オブジェクトクラス [詳解] | |
| class | AlphaBrendCopier |
| ImageBuffer<>::blt()で用ゐるαブレンドのための函數オブジェクトクラス [詳解] | |
| struct | AnotherRect |
| 長方形の別表現 [詳解] | |
| class | CopierUsingFixedAlpha |
| ImageBuffer<>::blt()で用ゐるαブレンドのための函數オブジェクトクラス [詳解] | |
| class | Exception |
| 例外 [詳解] | |
| class | HexPainter |
| 正六角形マス描畫クラス [詳解] | |
| class | ImageBuffer |
| 畫像バッファ基底クラステンプレート [詳解] | |
| class | MulBrendCopier |
| ImageBuffer<>::blt()で用ゐる乘算ブレンドのための函數オブジェクトクラス [詳解] | |
| class | Noncopyable |
| コピー禁止クラステンプレート [詳解] | |
| class | NormalBrendCopier |
| ImageBuffer<>::blt()で用ゐる單純轉送のための函數オブジェクトクラス [詳解] | |
| class | NormalBrendCopierFromPictureIndexed |
| PictureIndexed を單純に轉送するための函數オブジェクトクラス [詳解] | |
| class | Picture |
| RGB24bitの畫像バッファ [詳解] | |
| class | PictureIndexed |
| RGB24bit256インデックスの畫像バッファ [詳解] | |
| class | PictureRgba |
| RGBA32bitの畫像バッファ [詳解] | |
| struct | Point |
| 點 [詳解] | |
| class | RangeOverException |
| 範圍逸脱例外 [詳解] | |
| struct | Rect |
| 長方形 [詳解] | |
| class | RgbaColour |
| RGBA32bit色情報クラス [詳解] | |
| class | RgbColour |
| RGB24bit色情報クラス [詳解] | |
| class | ScopeGuard |
| スコープガードクラステンプレート [詳解] | |
関数 | |
| constexpr bool | operator== (const RgbaColour &x, const RgbColour &y) noexcept |
| constexpr bool | operator!= (const RgbaColour &x, const RgbColour &y) noexcept |
| constexpr bool | operator== (const RgbColour &x, const RgbaColour &y) noexcept |
| constexpr bool | operator!= (const RgbColour &x, const RgbaColour &y) noexcept |
| bool | loadDib (const std::filesystem::path &path, std::unique_ptr< Picture > &uppict, std::unique_ptr< PictureIndexed > &upindx) |
| DIBファイルの讀み込み | |
| bool | saveDib (const Picture &pict, const std::filesystem::path &path) |
| DIBファイルの保存 | |
| bool | saveDib (const PictureIndexed &pict, const std::filesystem::path &path) |
| DIBファイルの保存 | |
| template<class C_ > | |
| void | grayscale (C_ &pixel) |
| グレイスケール化 | |
| std::unique_ptr< Picture > | loadJpeg (const std::filesystem::path &path) noexcept |
| JPEGファイルの讀み込み | |
| bool | saveJpeg (const Picture &pict, const std::filesystem::path &path, bool prog=false, int quality=75) noexcept |
| JPEGファイルの保存 | |
| bool | loadPng (const std::filesystem::path &path, std::unique_ptr< Picture > &uppict, std::unique_ptr< PictureRgba > &uprgba, std::unique_ptr< PictureIndexed > &upindx) |
| PNGファイルの讀み込み | |
| bool | savePng (const Picture &pict, const std::filesystem::path &path) |
| PNGファイルの保存 | |
| bool | savePng (const PictureRgba &pict, const std::filesystem::path &path) |
| PNGファイルの保存 | |
| bool | savePng (const PictureIndexed &pict, const std::filesystem::path &path, bool trns=false, std::uint8_t tpal=0) |
| PNGファイルの保存 | |
| template<typename Func > | |
| ScopeGuard< Func > | makeScopeGuard (Func &&f) |
| スコープガード作成 | |
| std::string | lower (const std::string &str) |
| 小文字文字列化 | |
| std::wstring | lower (const std::wstring &str) |
| 小文字文字列化 | |
| template<class C , class T , class A > | |
| std::vector< std::basic_string< C, T, A > > | split (const std::basic_string< C, T, A > &str, const std::basic_string< C, T, A > &dlm) |
| 文字列分割 | |
| template<class C , class T , class A > | |
| std::vector< std::basic_string< C, T, A > > | split (const std::basic_string< C, T, A > &str, const C *dlm) |
| 文字列分割 | |
| template<class C , class T , class A > | |
| std::vector< std::basic_string< C, T, A > > | split (const std::basic_string< C, T, A > &str, C dlm) |
| 文字列分割 | |
| template<class C , class T , class A > | |
| std::basic_string< C, T, A > | trim (const std::basic_string< C, T, A > &str, const std::basic_string< C, T, A > &removed) |
| 文字列の先頭と末尾からの指定文字の除去 | |
| template<class C , class T , class A > | |
| std::basic_string< C, T, A > | trim (const std::basic_string< C, T, A > &str, const C *removed) |
| 文字列の先頭と末尾からの指定文字の除去 | |
| template<class C , class T , class A > | |
| std::basic_string< C, T, A > | ltrim (const std::basic_string< C, T, A > &str, const std::basic_string< C, T, A > &removed) |
| 文字列の先頭からの指定文字の除去 | |
| template<class C , class T , class A > | |
| std::basic_string< C, T, A > | ltrim (const std::basic_string< C, T, A > &str, const C *removed) |
| 文字列の先頭からの指定文字の除去 | |
| template<class C , class T , class A > | |
| std::basic_string< C, T, A > | rtrim (const std::basic_string< C, T, A > &str, const std::basic_string< C, T, A > &removed) |
| 文字列の末尾からの指定文字の除去 | |
| template<class C , class T , class A > | |
| std::basic_string< C, T, A > | rtrim (const std::basic_string< C, T, A > &str, const C *removed) |
| 文字列の末尾からの指定文字の除去 | |
グレイスケール化
ImageBuffer<C_>::forEachPixel()に與へると畫像をグレイスケール化する。
前提は、C_がstd::uint8_tの公開メンバ變數red, green, blueを持つこと。 C_ = RgbColour or RgbaColour で用ゐることを意圖してゐる。
| bool eunomia::loadDib | ( | const std::filesystem::path & | path, |
| std::unique_ptr< Picture > & | uppict, | ||
| std::unique_ptr< PictureIndexed > & | upindx ) |
DIBファイルの讀み込み
DIBファイルを讀み込み、Picture, PictureIndexed のいづれかを生成し、ファイル内容を反映させる。
讀み込みが成功したときには、 いづれか一つのunique_ptrのうち一つに實際に生成したオブジェクトが設定され、 殘る一つにはnullptrが設定される。
讀み込みが失敗したときには、二つのunique_ptrにはnullptrが設定される。
| path | 讀み込むべきPNGファイルのパス | |
| [out] | uppict | 生成したPictureを管理するunique_ptr |
| [out] | upidx | 生成したPictureIndexedを管理するunique_ptr |
|
noexcept |
JPEGファイルの讀み込み
JPEGファイルを讀み込む。
| path | 讀み込むべきPNGファイルのパス |
| bool eunomia::loadPng | ( | const std::filesystem::path & | path, |
| std::unique_ptr< Picture > & | uppict, | ||
| std::unique_ptr< PictureRgba > & | uprgba, | ||
| std::unique_ptr< PictureIndexed > & | upindx ) |
PNGファイルの讀み込み
PNGファイルを讀み込み、Picture, PictureRgba, PictureIndexed のいづれかを生成し、ファイル内容を反映させる。
讀み込みが成功したときには、 三つのunique_ptrのうち一つに實際に生成したオブジェクトが設定され、 殘る二者にはnullptrが設定される。
讀み込みが失敗したときには、三つのunique_ptrにはnullptrが設定される。
| path | 讀み込むべきPNGファイルのパス | |
| [out] | uppict | 生成したPictureを管理するunique_ptr |
| [out] | uprgba | 生成したPictureRgbaを管理するunique_ptr |
| [out] | upidx | 生成したPictureIndexedを管理するunique_ptr |
|
inline |
小文字文字列化
文字列str中の大文字を小文字に變換した文字列を返す。
| str | 對象文字列 |
|
inline |
小文字文字列化
文字列str中の大文字を小文字に變換した文字列を返す。
| str | 對象文字列 |
|
inline |
文字列の先頭からの指定文字の除去
文字列の先頭から、指定された文字を除去した文字列を返す。
| str | 操作の對象となる文字列 |
| removed | strの先頭から除去されるべき文字を列擧したC文字列 |
|
inline |
文字列の先頭からの指定文字の除去
文字列の先頭から、指定された文字を除去した文字列を返す。
| str | 操作の對象となる文字列 |
| removed | strの先頭から除去されるべき文字を列擧した文字列 |
|
inline |
スコープガード作成
| f | コールバックされる函數(オブジェクト) |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inline |
文字列の末尾からの指定文字の除去
文字列の末尾から、指定された文字を除去した文字列を返す。
| str | 操作の對象となる文字列 |
| removed | strの末尾から除去されるべき文字を列擧したC文字列 |
|
inline |
文字列の末尾からの指定文字の除去
文字列の末尾から、指定された文字を除去した文字列を返す。
| str | 操作の對象となる文字列 |
| removed | strの末尾から除去されるべき文字を列擧した文字列 |
DIBファイルの保存
畫像をDIB形式で保存する。
| path | 保存すべきDIBファイルのパス |
| pict | 保存する畫像 |
| bool eunomia::saveDib | ( | const PictureIndexed & | pict, |
| const std::filesystem::path & | path ) |
DIBファイルの保存
畫像をDIB形式で保存する。
| path | 保存すべきDIBファイルのパス |
| pict | 保存する畫像 |
|
noexcept |
JPEGファイルの保存
畫像をJPEG形式で保存する。
| pict | 保存する畫像 |
| path | 保存すべきJPEGファイルのパス |
| prog | プログレッシブ形式にするならtrue、さもなくばfalseを指定する。 |
| quality | 品質。0〜100で指定する。 |
PNGファイルの保存
畫像をPNG形式で保存する。
| path | 保存すべきPNGファイルのパス |
| pict | 保存する畫像 |
| bool eunomia::savePng | ( | const PictureIndexed & | pict, |
| const std::filesystem::path & | path, | ||
| bool | trns = false, | ||
| std::uint8_t | tpal = 0 ) |
PNGファイルの保存
畫像をPNG形式で保存する。透過色を用ゐることもできる。
| pict | 保存する畫像 |
| path | 保存すべきPNGファイルのパス |
| trns | 透過色を用ゐる場合はtrue、さもなくばfalseを指定する。 |
| tpal | 透過色とするパレットの番號 |
| bool eunomia::savePng | ( | const PictureRgba & | pict, |
| const std::filesystem::path & | path ) |
PNGファイルの保存
畫像をPNG形式で保存する。
| pict | 保存する畫像 |
| path | 保存すべきPNGファイルのパス |
|
inline |
文字列分割
文字列strを、文字dlmで指定するデリミタで分割する。
| str | 對象文字列 |
| dlm | デリミタとなる文字 |
|
inline |
文字列分割
文字列strを、C文字列dlmで指定するデリミタで分割する。
| str | 對象文字列 |
| dlm | デリミタとなる文字を列擧したC文字列 |
|
inline |
文字列分割
文字列strを、文字列dlmで指定するデリミタで分割する。
| str | 對象文字列 |
| dlm | デリミタとなる文字を列擧した文字列 |
|
inline |
文字列の先頭と末尾からの指定文字の除去
文字列の先頭と末尾から、指定された文字を除去した文字列を返す。
| str | 操作の對象となる文字列 |
| removed | strの先頭と末尾から除去されるべき文字を列擧したC文字列 |