Hi
I have image saved. Now i want to crop image to size below. I want code in VB6
ScaleHeight = 1875
ScaleWidth = 3075
Hi
I have image saved. Now i want to crop image to size below. I want code in VB6
ScaleHeight = 1875
ScaleWidth = 3075
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sophia CarterPosted Mar 20, 2025, 2:58 PM
Hello! I can guide you on how to crop an image to a specific size using VB6. In VB6, you can achieve image cropping by manipulating the properties of an Image control. Here's how you can do it:
1. Load the image you want to crop into an Image control:
2. Set the ScaleHeight and ScaleWidth properties of the Image control to the desired dimensions (in your case, ScaleHeight = 1875 and ScaleWidth = 3075):
3. You can then display the cropped image on a form or save it to a new file as needed:
By adjusting the ScaleHeight and ScaleWidth properties of the Image control, you can effectively crop the image to the specified dimensions.
This simple approach should help you achieve the desired image cropping in VB6. Let me know if you need further assistance or more details on this topic!