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
 Crop and iectmPERSPECTIVE wrong with Alphachannel

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
harry stahl Posted - Jun 05 2017 : 15:58:40
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
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 13 2017 : 21:26:31
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
harry stahl Posted - Jun 13 2017 : 13:57:17
Thank you, that works for me. By the way, GetFitValue (without Parameter) was also a public function in ImageEnView.

HS
xequte Posted - Jun 12 2017 : 20:09:57
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
harry stahl Posted - Jun 12 2017 : 18:05:55
Thank you, now it works as expected. But now the function "GetFitValue" of ImageEnView is missing. Where is it gone?

HS
xequte Posted - Jun 06 2017 : 17:55:31
I've emailed you the update...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
harry stahl Posted - Jun 05 2017 : 18:44:58
OK, I'm in that period and I've send you a mail.

HS
xequte Posted - Jun 05 2017 : 18:14:38
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