Merge branch 'main' of http://Elara:3000/Sean/marketdata
This commit is contained in:
@@ -166,6 +166,16 @@ namespace MarketData.CNNProcessing
|
||||
return memoryStream;
|
||||
}
|
||||
|
||||
// Convert bitmap to stream for use in CNNClient
|
||||
public Stream ToStream()
|
||||
{
|
||||
Validate();
|
||||
Stream memoryStream=new MemoryStream();
|
||||
BitmapExtensions.SaveJPG100(bitmap,memoryStream);
|
||||
memoryStream.Position=0;
|
||||
return memoryStream;
|
||||
}
|
||||
|
||||
public void SaveGrayScaleJPG(String pathFileName)
|
||||
{
|
||||
Validate();
|
||||
|
||||
Reference in New Issue
Block a user