Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 色変換
- SharpDX.WIC.BitmapSource transformSource = frame;
- if (untaggedOrUnsupported) // TryGetColorContextsの結果
- {
- // プロファイルが読み込めなかった場合はsRGBを適用するため32bppPBGRAへ変換
- var converter = new FormatConverter(factory);
- converter.Initialize(frame, PixelFormat.Format32bppPBGRA);
- transformSource = converter;
- }
- var transform = new ColorTransform(factory);
- transform.Initialize(transformSource, srcContext, destContext, PixelFormat.Format32bppPBGRA);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement