ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Performance issue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AlphaUniform

30 Posts

Posted - Sep 20 2019 :  04:14:49  Show Profile  Reply
Hi all,
I have the following problem:

I'm using this function


for(int y=0; y<ATargt->Height; y++)
{
  BYTE *w = (BYTE*)ATargt->ScanLine[y];
  for(int x=0; x<ATargt->Width; x++)
   {
	BYTE bValue = (BYTE)AImgData->GetPixel(x,y);
	*w = bValue;
	w++;
	for(int i=1; i<AImgData->GetChannelCount; i++)
	 {
	    *w = bValue;
	    ++w;
	 }
   }
}


to give Pixeldata to a TIEBitmap.

In ImageEn Vers. 6.3.0 everything works fine and smooth.
If I use ImageEn Vers 8.1.2 the same function needs about 10seconds to finish.

Does anyone know how I can solve this problem in 8.1.2?

Thanks in advance
Alex

xequte

38611 Posts

Posted - Sep 24 2019 :  17:57:17  Show Profile  Reply
Hi Alex

Are you able to create a small demo that reproduces it?

Did you try timing the code to see which line the slowness is introduced?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: