 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
steve Guest
|
Posted: Sun Nov 14, 2004 9:57 pm Post subject: How do I create a thumbnail from a jpeg |
|
|
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
|
|
| Back to top |
|
 |
Lawrence Tuppen Guest
|
Posted: Mon Nov 15, 2004 9:07 am Post subject: 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" <sportock (AT) hotmail (DOT) com> wrote
| Quote: |
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
|
|
|
| Back to top |
|
 |
Steve Guest
|
Posted: Mon Nov 15, 2004 1:13 pm Post subject: 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" <tuppenl (AT) ntlworld (DOT) com> wrote:
| Quote: | 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" <sportock (AT) hotmail (DOT) com> wrote in message
news:4197e2d7$1 (AT) newsgroups (DOT) borland.com...
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
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|