DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RotateImage Component

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
markmoss
Member


Joined: 11 Sep 2006
Posts: 2

PostPosted: 11/09/06 02:35    Post subject: RotateImage Component Reply with quote

Ladies / Gentlemen


I have just started to use the RotateImage Component and I have the following problem.

I attempted to rotate an Image 1degree and then do a RotateImage1.Picture.SaveToFile. I did this thru 360 degrees, but when I was done I had 360 Images of the Original Image. What did I do wrong.

FIRST Attempt
__________________________________________


for J := 1 to 360 do
begin

RotateImage1.Picture.LoadFromFile(GetCurrentDir + '\RW.bmp');

S := IntToStr(J);

Z := FMBInsZeros(S, Len);

PerformRotation( RotateImage1.Angle + J );

RotateImage1.Picture.SaveToFile(GetCurrentDir + '\360Degree\RW' + Z + '.bmp');

end;
__________________________________________

SECOND Attempt
__________________________________________

RotateImage1.Picture.LoadFromFile(GetCurrentDir + '\RW.bmp');

for J := 1 to 360 do
begin

S := IntToStr(J);

Z := FMBInsZeros(S, Len);

PerformRotation( RotateImage1.Angle + 1 );

RotateImage1.Picture.SaveToFile(GetCurrentDir + '\360Degree\RW' + Z + '.bmp');

end;

__________________________________________


Any help would be great.


Mark Moss
Back to top
View user's profile Send private message
markmoss
Member


Joined: 11 Sep 2006
Posts: 2

PostPosted: 11/09/06 02:50    Post subject: I foud it . Reply with quote

Ladies / Gentlemen


I found what I was looking for

RotateImage1.RotatedBitmap.SaveToFile()

Thanks for your help that would have been given.


Mark Moss
Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group