Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / SaveHistogramToFile

SaveHistogramToFile method

Saves the histogram of the loaded image to the specified file.

Syntax

Boolean SaveHistogramToFile(strFile As String, nWidth As Number, nHeight As Number, nBackgroundColor As Number, nGraphColor As Number, nBackgroundOpacity As Number, nGraphOpacity As Number, nChannel As Channel, nFormat As Format, nBPP As Number)

Return value

Returns true if the function succeeded.

Parameters

ParameterTypeRequiredDescription
strFileStringYesString containing the path for the file.
nWidthNumberNoOptional parameter which specifies the width of the histogram.
nHeightNumberNoOptional parameter which specifies the height of the histogram.
nBackgroundColorNumberNoOptional parameter which specifies the graph background color.
nGraphColorNumberNoOptional parameter which specifies the graph bar color.
nBackgroundOpacityNumberNoOptional parameter which specifies the opacity of the graph background.
nGraphOpacityNumberNoOptional parameter which specifies the opacity of the graph bar.
nChannelChannel (Enumeration)NoOptional parameter which specifies the color channel.
nFormatFormat (Enumeration)NoOptional parameter containing the format for the file.
nBPPNumberNoOptional parameter containing the number of bits per pixel for the file.

Category

Histogram

See also

GetHistogramAverage | GetHistogramCount | GetHistogramMean | GetHistogramPercentile | GetHistogramPixels | InsertHistogram | LoadHistogramFromBase64 | LoadHistogramFromFile | LoadHistogramFromSerializedStream | LoadHistogramFromStream | LoadHistogramFromURL | SaveHistogramToImage | SaveHistogramToSerializedStream | SaveHistogramToStream