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