[Lazarus] Loading file into TImageList does not properly scale

Marc Weustink marc at dommelstein.net
Sun Nov 22 23:41:36 CET 2009


Matt Shaffer wrote:
> Hello, the code below is how I load and convert PNG files into BMPs, add 
> them to a TImageList, and then add them to a TListView. 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.

TImage does not modify the original image, it only renders itself at the 
given size. IIRC you can pass a drawing rectange when drawing a graphic 
on a canvas.

Marc







More information about the Lazarus mailing list