realbasic-nug
[Top] [All Lists]

Generating Thumbnails from a picture

To: REALbasic-NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Generating Thumbnails from a picture
From: Dr Gerard Hammond <realbasic at macsos dot com dot au>
Date: Fri, 1 Sep 2006 10:23:27 +1000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hi,

If I have a picture object instantiated in RB, what are good options for generating and saving a jpeg thumbnail?

My first idea was to iterate though the pixels and copy every, say, 5th pixel into another picture object then save that to disk.
Do you have any other suggestions on creating thumbnails?

I guess I could use the graphics.drawpicture method (with all it's scaling parameters) to draw the original image into a small picture variable, then write that out to the smaller image to disk.

Perhaps someone has some alternatives?
--

Cheers,

Dr Gerard Hammond
MacSOS Solutions
http://www.macsos.com.au
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>