I need to load and pass an image to a code. I am trying to modify part of a code from this library. This library is designed for windows and the below is the code which I need to modify for linux environment. Can some one help me with its linux equivalent.
System::Drawing::Bitmap^ m_bmpImage;
System::String^ sFile = gcnew System::String(txtFilePath->Text);
m_bmpImage = gcnew System::Drawing::Bitmap(sFile);
BitmapData^ bmpData = m_bmpImage->LockBits(
System::Drawing::Rectangle(0, 0, m_bmpImage->Width, m_bmpImage->Height),
ImageLockMode::ReadWrite, PixelFormat::Format24bppRgb);
ImageData imgData;
imgData.Resize(bmpData->Width, bmpData->Height, 3, bmpData->Stride);
memcpy(imgData.Data, (char*)(void*)bmpData->Scan0, bmpData->Stride*bmpData->Height);
m_bmpImage->UnlockBits(bmpData);