問題タブ [boost-gil]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - 透明な画像の読み込み boost.gil C++
背景が透明な画像があり、それを別の画像の上にコピーしたいのですが、どちらの画像も png 形式です。boost::gil::rgba8_image_t を使用してみましたが、代わりに灰色の背景で透明な画像をコピーします。これは私が使用したものです
c++ - PImpl イディオムと不思議なことに繰り返されるテンプレート パターンの使用
PImpl Idiom と Curiously Recurring Template Pattern を使用しているときに派生イメージ クラスのコンストラクターを作成すると、コンパイル エラーが発生します。画像クラス実装の基本クラスは、CRTP (Curiously Recurring Template Pattern) を使用して、別の仮想呼び出しを階層化する代わりに静的ディスパッチを強制します。私が間違っていることを教えてください。エラーが発生した場所についてはコメントを参照してください
// エラー: 'jpeg_image::impl' の初期化に一致するコンストラクターがありません [clang-diagnostic-error]
// エラー: フィールドの型が不完全です 'jpeg_image::impl' [clang-diagnostic-error]
画像.hpp
画像.cpp