BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I create a thumbnail from a jpeg

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
steve
Guest





PostPosted: Sun Nov 14, 2004 9:57 pm    Post subject: How do I create a thumbnail from a jpeg Reply with 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
Lawrence Tuppen
Guest





PostPosted: Mon Nov 15, 2004 9:07 am    Post subject: Re: How do I create a thumbnail from a jpeg Reply with 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

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





PostPosted: Mon Nov 15, 2004 1:13 pm    Post subject: Re: How do I create a thumbnail from a jpeg Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.