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
 Can Angle Be Added To TIEDrawingInfo For A Layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Mar 31 2016 :  13:20:05  Show Profile  Reply
TIEDrawingInfo

Declaration

TIEDrawingInfo = record
XDst: integer; // Destination x (output canvas)
YDst: integer; // Destination y (output canvas)
WidthDst: integer; // Destination width (output canvas)
HeightDst: integer; // Destination height (output canvas)
XSrc: integer; // Source x (input bitmap)
YSrc: integer; // Source y (input bitmap)
WidthSrc: integer; // Source width (input bitmap)
HeightSrc: integer; // Source height (input bitmap)
RotatedDest: array [0..3] of TPoint; // destination rotated points (output canvas)
Angle: integer; // New
end;

This would allow calling ImageEnView1.Proc.RotateAndCrop(ImageEnView1.Layers[1].DrawingInfo.Angle, ierBicubic, fSourceBitmap.Height / fSourceBitmap.Width, SelectedCropAlgorithm);

This would be great!

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development

xequte

39053 Posts

Posted - Apr 04 2016 :  22:09:15  Show Profile  Reply
Hi Bill

For historical reasons, rotated layers are treated slightly differently internally. But you can use:

ImageEnView1.Proc.RotateAndCrop( ImageEnView1.Layers[ I ].Rotate, ... );

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: