Good point.

I am putting the thumbnails on tabs of a tab control.  So it is really
just a postage sized picture to let the user know which image is on
which tab.  And because of the way that Delphi does this, all the
images have to be the same size.  They are stored in a TImageList, and
then the tabsheet is specified to have a given index from the
ImageList.

So to a certain degree, if the aspect ratio is off, it will be OK,
because you can barely tell what the image is at that small a size
anyway.

One way I considered to solve this would be to figure out which
dimension had the greatest length.  Then set that length of 64, and
then let the other dimension be less than 64 (and fill in the rest of
the space with white or transparent.)

This is on my to do list, but is a bit lower on the priority list.

Thanks for your input.

Kevin



On 10/9/05, Todd Berman <[EMAIL PROTECTED]> wrote:
> On Sun, 2005-10-09 at 10:01 -0400, Kevin Toppenberg wrote:
> > On 10/9/05, Todd Berman <[EMAIL PROTECTED]> wrote:
> > -snip-
> > > > Could you post a link to this library?
> > > >
> > >
> > > Happily. We are using gdk-pixbuf, which is a lower level library in the
> > > gtk+ toolkit. (Sorry, I kinda assumed the toolkit we were using was well
> > > known)
> > >
> > > http://www.gtk.org/
> > >
> >
> > You probably told me that before, and I forgot.
> > Hmmm, that gtk looks like a huge library.  I'm not sure I want to take
> > the time to figure it all out for this one issue.
> >
> > If your code can handle any format by format analysis instead of based
> > on extensions, then I think I will not use TGA.
> >
> > I'm going to use 64x64 .bmp files for now.
> >
>
> Kevin, One issue using a 64x64 image of any format is keeping the
> original aspect ratio. 64x64 thumbnail of a 600x1000 image is not going
> to be very useful.
>
> I would recommend using a size that allows the original aspect ratio to
> be honored.
>
> --Todd
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Hardhats-members mailing list
> Hardhats-members@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to