Saves the histogram of the loaded image to a stream. The stream data contains all binary information which is normally saved to a physic file when you save the histogram image to a file using the
SaveHistogramToFile method. You can use the stream to save the image to a file using your own custom function. You can also use the stream to transfer image objects within your application, so you don't have to save the image to (temporary) files. If you just want to transfer histogram image data from one image object to another image object, use the
SaveHistogramToSerializedStream method. This gives better performance for internal image data transfers.