[Lazarus] Loading file into TImageList does not properly scale

Matt Shaffer dazappa.matt at gmail.com
Mon Nov 23 02:00:35 CET 2009


>
>
> as a "relative newbie" here (but not to coding in PASCAL), why do you have
> to convert to BMP? does the existing library (ie: LCL and FPC) code not
> accept PNG, GIF and similar for these graphic purposes?
>
>  I could not find a way programatically to load an image into a TImageList
from a file.

The only function I found was: TImageList.AddMasked(TBitmap,TColor); so I
had to convert it to a tbitmap first.

>
>  The problem I'm having is that I cannot get the little bugger to scale to
>> 96x96; other than that the code works. I would imagine that setting the
>> timage's stretch property to true ought to scale the image to 96x96, but
>> that was not the case.
>>
>
> sounds like it looks at the image properties for smaller scale with which
> to increase via the "stretch" routine... unlike other "stretch" routines
> which also reduce in size to the chosen params...
>
I'm not sure. All I know is it didn't function as I would have expected.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20091122/af088bdb/attachment-0004.html>


More information about the Lazarus mailing list