Description Generates a bitmap image file from a Color Image data file generated by FRED.
Syntax ConvertColorImageFileXYZToBitmap ColorFile, BMPFile, brightness, NOutOfGamut
Parameters ColorFile As String Full file path name of the color image data file being used to generate the bitmap image.
BMPFile As String Full file path name of the output Bitmap image file, including the ".bmp" file extension.
brightness As Double Relative brightness value of the image. A brightness value of 1.0 is the default, with larger values increasing the relative brightness and smaller values decreasing the relative brightness.
NOutOfGamut As Long After the subroutine executes, the value of this variable will contain the number of out-of-gamut colors in the image data.
Example The example below demonstrates how to use an ARN to produce a bitmap file of the Color Image analysis.
Sub Main
Dim ana As Long ana = FindFullName( "Analysis Surface(s).Analysis 1" )
Dim ciArn As Long, outdata As String, outimage As String, nOutOfGamut As Long outdata = "C:\temp\fred\support\CI_Data.fgd" outimage = "C:\temp\fred\support\CI_Data.bmp" ColorImageToARN( ana, "Color Image Result", ciArn ) ARNWriteToFile( ciArn, outdata, False, False ) ConvertColorImageFileXYZToBitmap( outdata, outimage, 1.0, nOutOfGamut )
End Sub
See Also
|