Recent

Author Topic: imagelist bugger report  (Read 2557 times)

badmintonfan

  • New Member
  • *
  • Posts: 47
imagelist bugger report
« on: June 02, 2018, 07:19:41 am »
1) If the acual image size bigger than imagelist hight or width,imagelist can not display whole picture,whatever adjusetment is selected
2) For the already loaded images,there is no way to chage adjusetment or transpartent color,unless clear them and load again

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: imagelist bugger report
« Reply #1 on: June 02, 2018, 07:33:31 am »
1) If the acual image size bigger than imagelist hight or width,imagelist can not display whole picture,whatever adjusetment is selected
sorry that makes no sense to me there is no such thing as imagelist height or width there is glyph height you can change but the image list height /width is the sum of the width / height of all the gluphs in the list.
2) For the already loaded images,there is no way to chage adjusetment or transpartent color,unless clear them and load again
there are no independent images after load.
for the purpose of this post lets call the images in an imagelist glyph a bit of light information on how an image list works.
you specify the size ofeach glyph you want to add all glyphs must have the same size (width and height) the image list is a single in memory image that has all the glyphs in it one next to the other every time you add a glyph the internal image is resized to make room for the new glyph and then it draws it in that space. Once the load process has finished there is no individual glyph that can be redrawn as needed. every time a glyph is needed the image list will create a smaller in memory image and copy the part that is the glyph requested from the internal image to the new image.
Now in order for the various placement options to work as expected you need to select the transparent colour before selecting placement the clDefault that is selected does not produce any colors for that perticular instance and kind of falls of to a linux inspired black that covers everything.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018