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
 Can Angle Be Added To TIEDrawingInfo For A Layer

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
w2m Posted - Mar 31 2016 : 13:20:05
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 04 2016 : 22:09:15
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