1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0031175: Visualization - support dumping RED channel as grayscale image

Graphic3d_BufferType has been extended by Graphic3d_BT_Red.
This commit is contained in:
kgv
2019-11-18 14:00:01 +03:00
committed by mgn
parent 428db9e53d
commit 858a361f1f
4 changed files with 18 additions and 6 deletions

View File

@@ -2642,6 +2642,7 @@ Standard_Boolean V3d_View::ToPixMap (Image_PixMap& theImage,
case Graphic3d_BT_RGBA: aFormat = Image_Format_RGBA; break;
case Graphic3d_BT_Depth: aFormat = Image_Format_GrayF; break;
case Graphic3d_BT_RGB_RayTraceHdrLeft: aFormat = Image_Format_RGBF; break;
case Graphic3d_BT_Red: aFormat = Image_Format_Gray; break;
}
if (!theImage.InitZero (aFormat, Standard_Size(aTargetSize.x()), Standard_Size(aTargetSize.y())))