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.
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....