Board index » cppbuilder » How do I create a thumbnail from a jpeg
steve
![]() CBuilder Developer |
steve
![]() CBuilder Developer |
How do I create a thumbnail from a jpeg2004-11-15 05:57:27 AM cppbuilder45 I wish to take any given jpg and create a thumbnail of it. I need to do this for a realtor application. Is this possible with bcb6? I have been hunting around in the help, but I have never done anything like this before. Tia Steve |
Lawrence Tuppen
![]() CBuilder Developer |
2004-11-15 05:07:07 PM
Re:How do I create a thumbnail from a jpeg
Use the StretchDraw() function of TBitMap. You can stretch bigger or smaller
to fit into the chosen screen rectangle. Alternatively manipulate your image files in bulk with some other program, such as Paint Shop Pro, which would give you smaller files to read into your application which would speed the application if there are a large number of files (for example - more than 20 at once). Having to manage the files means an extra step for your staff who feed the picture into the system - which might be beyond them. You could output the "stretched" small picture in it's new size as a BMP file, but you might want to append "Small" to the front of the file name. There is no real point in using a compressed format (such as jpg) for these small files because it will slow down reading/writing but not save any disc space because files have a minimum size. For examples of image reading, writing, streching, croping, rotating, see the Borland C++ Builder 6 Developer's Guide page 600. A few dollars from Amazon. "steve" < XXXX@XXXXX.COM >wrote in message Quote
|
Steve
![]() CBuilder Developer |
2004-11-15 09:13:39 PM
Re:How do I create a thumbnail from a jpeg
Thanks, what I have to do is create an application
that is for a realtors website, they want to be able to take their dig pics, and upload them along with any listing information. I have to be able to take their pics with my app, and create the thumbnails to go along with the larger photos. Would this method be doable? I do have that book and will hit that section, any more insight you can offer would be appreciated. Thanks Steve "Lawrence Tuppen" < XXXX@XXXXX.COM >wrote: QuoteUse the StretchDraw() function of TBitMap. You can stretch bigger or smaller {smallsort} |