StandardizedDiffuseAlbedoMaps.CalibratedTexture.BuildSwatch C# (CSharp) Method

BuildSwatch() private method

Builds a swatch bitmap
private BuildSwatch ( int _Width, int _Height, ImageUtility _xyY ) : ImageUtility.Bitmap
_Width int
_Height int
_xyY ImageUtility
return ImageUtility.Bitmap
        private ImageUtility.Bitmap BuildSwatch( int _Width, int _Height, ImageUtility.float3 _xyY )
        {
            ImageUtility.Bitmap	Result = new ImageUtility.Bitmap( _Width, _Height, new ImageUtility.ColorProfile( ImageUtility.ColorProfile.STANDARD_PROFILE.sRGB ) );
            ImageUtility.float4	XYZ = new ImageUtility.float4( ImageUtility.ColorProfile.xyY2XYZ( _xyY ), 1.0f );
            for ( int Y=0; Y < _Height; Y++ )
                for ( int X=0; X < _Width; X++ )
                    Result.ContentXYZ[X,Y] = XYZ;

            return Result;
        }