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
 v8 Problem with RenderToTIEBitmapEx

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
PixAndMore Posted - Jul 06 2018 : 03:24:22
Hello...

with v8 I have problems to generate thumbnails from the original large images... until v7.5 I used that code


Destination.Allocate(dstWidth, dstHeight);

Source.RenderToTIEBitmapEx(Destination,
  0, 0, dstWidth, dstHeight,
  srcX, srcY, srcWidth, srcHeight,
  False, 255, Resample
);


this proceduces with v8 this output:



when i replace RenderToTIEBitmapEx with CopyRectTo

Source.CopyRectTo(Destination,
  0, 0, 0, 0, dstWidth, dstHeight
);

it works, but it is not the same as what i wanted



Regards, Kai
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 09 2018 : 05:36:41
Thanks Kai

We will have a fix for this in 8.0.1 tomorrow.



Nigel
Xequte Software
www.imageen.com
PixAndMore Posted - Jul 09 2018 : 02:10:42
Hello Nigel,

i have made some more tests, this happens only when I use rfFastLiniar as resample mode. My app uses rfNone, rfFastLinear und rfLanczos3 (None, Fast, HQ) in the user interface. rfNone and rfLanczos3 works as in v7.5 and your rfWICLinear works also...

which resample filter is a good replacemant for rfFastLiniear?



Regards, Kai
xequte Posted - Jul 06 2018 : 22:37:24
Hi Kai

I tried to reproduce as follows, but it works in my tests (Delphi 10.1 Berlin):

procedure TForm1.Button1Click(Sender: TObject);
const
  srcX = 10;
  srcY = 10;
  dstWidth  = 300;
  dstHeight = 300;
  srcWidth  = 200;
  srcHeight = 200;
  Resample = rfWICLinear;
begin
  ImageEnView2.IEBitmap.Allocate(dstWidth, dstHeight);

  ImageEnView1.IEBitmap.RenderToTIEBitmapEx(ImageEnView2.IEBitmap,
    0, 0, dstWidth, dstHeight,
    srcX, srcY, srcWidth, srcHeight,
    False, 255, Resample );

  ImageEnView2.Update();
end;


Nigel
Xequte Software
www.imageen.com
xequte Posted - Jul 06 2018 : 06:40:10
Hi Kai

Can you please give me the full method/code to reproduce the issue?



Nigel
Xequte Software
www.imageen.com