what controls are available to do resampling in the code? I need to resample the pictures to a final size equal 1MB. How can I do this? Generally, for the re sampling they require to change the width and height. What we need is to enter the size = 1 MB and generate the picture with a specific width and height.