Hello Everyone:
I want to check the size of a bitmap picture before loading it into a
Picture control or Image control. If the size of a bitmap is bigger than e.g.
500kB or 120x120, I want the control to scale the picture into 120x120 and
save the scaled picture into a file e.g. ABC.bmp.
Can anyone please tell me how to do the following:
1) How to detect the size of a picture file in kB or in HeightxWidth?
2) How to scale the picture into the required dimension e.g. 120x120?
3) Can the SavePicture( ) save the scaled picture?
I try to scale a picture in Image control with Stretch = True, and
save the image with SavePicture( ). But the new picture remains in the same
size!
Can anyone give me some advise, suggestion or example please?
Thanks in advance!