|
@@ -5,6 +5,7 @@ using OTSModelSharp.ServiceCenter;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Drawing;
|
|
|
|
+using System.Drawing.Imaging;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Xml;
|
|
using System.Xml;
|
|
|
|
|
|
@@ -192,7 +193,7 @@ namespace OTSDataType
|
|
{
|
|
{
|
|
CImageHandler imghandler = new CImageHandler();
|
|
CImageHandler imghandler = new CImageHandler();
|
|
List<COTSParticleClr> Parts = GetListAnalysisParticles();
|
|
List<COTSParticleClr> Parts = GetListAnalysisParticles();
|
|
- Bitmap img = new Bitmap(this.ImgWidth, this.ImgHeight);
|
|
|
|
|
|
+ Bitmap img = new Bitmap(this.ImgWidth, this.ImgHeight, PixelFormat.Format24bppRgb);
|
|
var imgparam = m_sample.GetMsrParams().GetImageProcessParam();
|
|
var imgparam = m_sample.GetMsrParams().GetImageProcessParam();
|
|
var pixelsize = m_sample.CalculatePixelSize();
|
|
var pixelsize = m_sample.CalculatePixelSize();
|
|
imghandler.GetImageWithSTDColoredParts(Parts, imgparam, pixelsize, ref img);
|
|
imghandler.GetImageWithSTDColoredParts(Parts, imgparam, pixelsize, ref img);
|