Link to home
Start Free TrialLog in
Avatar of rmloh
rmloh

asked on

How to Change a Bitmap size form delphi 3

How to Change a Bitmap size form delphi 3?
Avatar of inthe
inthe

if your using the timage component set the stretch property to true in object inspector if this gives unexceptable result i can post a unit for rescaling bitmaps
Regards Barry
You just use

bmp.width := whatevervalue;
bmp.height := whatevervalue;

-Viktor
--Ivanov
Avatar of rmloh

ASKER

I now how to do it i wont to save the image in my size to a
bmp file
PLease explain yourself better next tim 'cuz I don't understand what ya mean...

Here is the way to save the bitmap....

MyBmp.SaveToFile(Filename);

-Viktor
--Ivanov
Avatar of rmloh

ASKER

No i wont to save a bitmap in my size
I think, what rmloh is trying to say is:
He wants to change the size of a Bitmap and then save it to file with the new size.

Greetings, Oli
You can create a temporary TBitmap, copy the stretched image (of the source) over using CopyRect or the like then save the temporary TBitmap using the SaveToFile method.

TC
rmloh, I think you don't know what you are talking about. The other question you asked is messed up the same way this one is,,, YOu don't explain and just reject answers/... If you are not satisfied with the answer you should ask for further help and not just reject the answer... if I don't supply further help you just reject it then.... NExt time you bettter explain your situation 'cuz and tired of people not explaining completly what they want...

-Viktor
Avatar of rmloh

ASKER

The anserr is excellant but can you pleas tell my how
to Stretch and save to file.
 
   
ASKER CERTIFIED SOLUTION
Avatar of viktornet
viktornet
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, I forgot, make sure that you have a bitmap named test.bmp on your desktop in order for this to work....

-Viktor
Avatar of rmloh

ASKER

ok ok
Did it work?? If not just tell me what went wrong and I'll fix it.

-Viktor