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
 Crop and iectmPERSPECTIVE wrong with Alphachannel
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

harry stahl

Germany
62 Posts

Posted - Jun 05 2017 :  15:58:40  Show Profile  Reply
I use ImageEn 6.32 in my current project.

When I use the CropTool with an image with aphachannel then the cropping result loose the alphavalues and has wrong colors (You can test it with your own demo, open an transparent Image and activate "perspektive distortion" and then apply cropping).

What can I do?

HS

xequte

38615 Posts

Posted - Jun 05 2017 :  18:14:38  Show Profile  Reply
Hi

We have implemented Alpha support for perspective cropping in v7.0.1. Email me for the latest source (if you are still still within your registration period).

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

harry stahl

Germany
62 Posts

Posted - Jun 05 2017 :  18:44:58  Show Profile  Reply
OK, I'm in that period and I've send you a mail.

HS
Go to Top of Page

xequte

38615 Posts

Posted - Jun 06 2017 :  17:55:31  Show Profile  Reply
I've emailed you the update...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

harry stahl

Germany
62 Posts

Posted - Jun 12 2017 :  18:05:55  Show Profile  Reply
Thank you, now it works as expected. But now the function "GetFitValue" of ImageEnView is missing. Where is it gone?

HS
Go to Top of Page

xequte

38615 Posts

Posted - Jun 12 2017 :  20:09:57  Show Profile  Reply
Hi Harry

Rather than the undocumented GetFitValue, use the new methods, GetIdealZoom.

TImageEnView.GetIdealZoom

Declaration

function GetIdealZoom(): Double; overload;
procedure GetIdealZoom(out x, y: double); overload;


Description
Returns the best zoom value to stretch the image to fit within the component. If second overload is used, independent Zoom values are given for x and y.

Note: If the image is empty, result will be zero.

Example
// Both the following code snippets will have the same result
ImageEnView.Zoom := ImageEnView.GetIdealZoom;

// or
ImageEnView.Fit;

// Zoom to fit width
ImageEnView.GetIdealZoom( ZoomX, ZoomY );
ImageEnView.Zoom := ZoomX;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

harry stahl

Germany
62 Posts

Posted - Jun 13 2017 :  13:57:17  Show Profile  Reply
Thank you, that works for me. By the way, GetFitValue (without Parameter) was also a public function in ImageEnView.

HS
Go to Top of Page

xequte

38615 Posts

Posted - Jun 13 2017 :  21:26:31  Show Profile  Reply
Hi Harry

Yes, I suspect a few people were using it. So we added an official function for it with an optional overload.

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