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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Performance issue

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AlphaUniform Posted - Sep 20 2019 : 04:14:49
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 24 2019 : 17:57:17
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