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
 Rotate command Depreciated?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Oct 28 2014 :  11:24:10  Show Profile  Reply
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



w2m

USA
1990 Posts

Posted - Oct 28 2014 :  12:51:45  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: