|
|
@ -108,7 +108,7 @@ bool CCsvToImg::CreateImgFromData(float * pDataOrg, int Rows, int Cols, CImage
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CSingleLock sLck(&m_Section, TRUE);
|
|
|
|
CSingleLock sLck(&m_Section, TRUE);
|
|
|
|
image.Destroy();
|
|
|
|
image.Destroy();
|
|
|
|
image.Create(Rows, Cols,24);
|
|
|
|
image.Create(Cols, Rows,24);
|
|
|
|
byte* pSourceData = (byte*)image.GetBits();
|
|
|
|
byte* pSourceData = (byte*)image.GetBits();
|
|
|
|
int image_pitch = 3;
|
|
|
|
int image_pitch = 3;
|
|
|
|
|
|
|
|
|
|
|
@ -119,7 +119,7 @@ bool CCsvToImg::CreateImgFromData(float * pDataOrg, int Rows, int Cols, CImage
|
|
|
|
for (int j = 0; j < Cols; j++)
|
|
|
|
for (int j = 0; j < Cols; j++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
image.SetPixel(i, j, m_colorSchemeManager.currentScheme->getColor(*pDataOrg++));
|
|
|
|
image.SetPixel(j, i, m_colorSchemeManager.currentScheme->getColor(*pDataOrg++));
|
|
|
|
//进行RGB设置
|
|
|
|
//进行RGB设置
|
|
|
|
/*if (pDataOrg[idx++]<100)
|
|
|
|
/*if (pDataOrg[idx++]<100)
|
|
|
|
{
|
|
|
|
{
|
|
|
|