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
 Rotate command Depreciated?

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
John Posted - Oct 28 2014 : 11:24:10
Hello

Delphi XE6 and ImageEn 5.1.1

When I compile I get the following compiler error
[dcc32 Warning] Scanner.pas(1565): W1000 Symbol 'Rotate' is deprecated

The line of code that is referenced is shown below
procedure TformScanner.SpeedButtonLeft90Click(Sender: TObject);
begin
Screen.Cursor := crHourglass;
ImageEnView1.Proc.Rotate(+90, True, ierBiCubic, -1);
ImageEnMView1.SetIEBitmap(tempImageIndexNumber, ImageEnView1.IEBitmap);
UpdateTiffHandlerAndStream;
Screen.Cursor := crDefault;
end;

The ImageEn help file does not indicate that the Rotate command is depreciated.

Suggestions?

TIA

John



1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Oct 28 2014 : 12:51:45
Rotate is overloaded. There is a Rotate(Angle: Double; AntiAlias: Boolean; AntialiasMode: TIEAntialiasMode; BackgroundColor: TColor); which is depreciated and Rotate(Angle: Double; AntiAliasMode: TIEAntialiasMode; BackgroundColor: TColor) which is not.

It is up to you to use the second non-depreciated method call.

You can easily find this out yourself. Just put your cursor on the word rotate, then right click to display a popupmenu, then select Find Declaration. The imageenproc unit will open and the method will be shown. Look at the code it is clearly marked depreciated... Often time you have to look at the source code if something does not correspond with what you see in the help file. The source code is your friend....

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