On Friday 27 October 2017 10:28:07 code dz wrote:
> Hi Martin
> i want to display all the images in a particular folder as a
> thumbnails , what is the proper widgets for that ? .
If there are not too much items and the size is small a tlistview with an
On Friday 27 October 2017 11:00:27 code dz wrote:
> there are more than 80 images (png , jpg) with sizes (512x512 ,
> 1024x1024 , 256x256 , 128x128)
They will be stretched to the tumbnail size while loading so it probably is
OK. 80 48x48 thumbnails occupy sqrt(80)*48 = 430*430 pixels on the server.
I recommend to use GraphicsMagick (unit lib/common/image/msemagickstream)
instead of the FPC conversion functions. GraphicsMagick is much faster.
> On Friday 27 October 2017 13:23:17 code dz wrote:
>> i used this code to load images
>> the listview display sliced images , how to display stretched image ?
>> for i:=0 to 9 do begin
>> bmp := tmaskedbitmap.create(bmk_rgb);
>> timagelist1.addimage(bmp,[al_stretchx,al_stretchy]); <<<<<----
> (not tested).
On Saturday 28 October 2017 22:58:53 code dz wrote:
> the images are not x centered inside the listview boxes .
> seems tlistview.itemlist.magealignment[al_xcentered] does not work ,
> or i missed something ;)
Works for me if captionpos = cp_center, see attachment.
On Sunday 29 October 2017 12:06:43 code dz wrote:
> i enable it , but there is no difference
Which operating system? I assume that for downscaling a sum per pixel
algorithm will be used anyway.
For upscaling the difference is visible, see attachment with 16x16 -> 24x24,
the second item is with al_intpol.