Hi all ...
I have Jpeg data in a memory buffer (it was not read from a file). I am currently using the following code to show the Jpeg image in a TImage control.
ms->Clear();
ms->Write(JpgBuf, this->ulFrmDataLen);
ms->Seek(0, soFromBeginning);
jp->LoadFromStream(ms);
Image1->Picture->Assign(jp);
where, ms is a TMemoryStream, and jp is a TJpegImage. I would like to reduce the number of steps that it takes to show the image. Is there an alternative?
Thanks, in advance
Jeff
I have Jpeg data in a memory buffer (it was not read from a file). I am currently using the following code to show the Jpeg image in a TImage control.
ms->Clear();
ms->Write(JpgBuf, this->ulFrmDataLen);
ms->Seek(0, soFromBeginning);
jp->LoadFromStream(ms);
Image1->Picture->Assign(jp);
where, ms is a TMemoryStream, and jp is a TJpegImage. I would like to reduce the number of steps that it takes to show the image. Is there an alternative?
Thanks, in advance
Jeff