Hello, I'm having a bit of trouble trying to resize an image (BMP) in borland delphi 7.
The program I'm working on is part of our ID Card system where people can have their photographs taken and placed on an ID card.
When this program was created, people were meant to use one of our webcams, but now we let people upload theirt images from remote locations for processing.
Because of this, a problem has arisen where people are using their megapixel digital cameras and our software cant deal with images that are outside of a certain spec size (depending on the company and ID card).
I've managed to scale the image preview on screen, but now our selection rectangle is too small to grab their faces from the images sent to us. This means that I have to resize the image in a program such as Paint Shop Pro or Photoshop.
Now, this is causing headfaches, because alot of calculations are required to make sure the person's face isnt stretched or skewed.
My plan is to somehow resize the bitmap image in the code, or even take the scaled image and save it to a temporary bitmap which then will be imported to the program.
I've searched the net, and found some controls and libraries, but these are expensive for what they are
Any ideas?
I'm not sure if I'm being too vague in this descriprtion, so feel free to ask for any more details. All I'm looking for is a few ideas or to be pointed in the right direction.
Question
ElectricDemon
Hello, I'm having a bit of trouble trying to resize an image (BMP) in borland delphi 7.
The program I'm working on is part of our ID Card system where people can have their photographs taken and placed on an ID card.
When this program was created, people were meant to use one of our webcams, but now we let people upload theirt images from remote locations for processing.
Because of this, a problem has arisen where people are using their megapixel digital cameras and our software cant deal with images that are outside of a certain spec size (depending on the company and ID card).
I've managed to scale the image preview on screen, but now our selection rectangle is too small to grab their faces from the images sent to us. This means that I have to resize the image in a program such as Paint Shop Pro or Photoshop.
Now, this is causing headfaches, because alot of calculations are required to make sure the person's face isnt stretched or skewed.
My plan is to somehow resize the bitmap image in the code, or even take the scaled image and save it to a temporary bitmap which then will be imported to the program.
I've searched the net, and found some controls and libraries, but these are expensive for what they are
Any ideas?
I'm not sure if I'm being too vague in this descriprtion, so feel free to ask for any more details. All I'm looking for is a few ideas or to be pointed in the right direction.
Regards.
Edited by ElectricDemonLink to comment
Share on other sites
1 answer to this question
Recommended Posts