Restrictions on dcl_PictureBox_PaintPicture

Started by velasquez, February 21, 2011, 10:47:15 AM

Previous topic - Next topic

velasquez

Working with dcl_PictureBox_PaintPicture was only possible to use images. ico.
This is correct for the method?
I posted the files to show it.

Velasquez

owenwengerd

The problem is with specifying T for the UseMask argument for all four images, when only the .ico image includes a transparency mask. I changed the T to nil in all but the first list, then it displayed each image as expected.

velasquez

I work with a PictureBox which has a fixed width but the height is variable.
First I get the height of PictureBox with dcl_Control_GetHeigh.
After I create an array with a standard image with LoadPictureFile.
The list size can create a problem? ?
I posted a partial image.
Code (autolisp) Select
(dcl_PictureBox_PaintPicture LoadPictureFile_Form1_PictureBox1
   (list
(list 0 0 106 T NIL) ;_ .png image -> OK
(list 0 1 106 T NIL)
(list 0 2 106 T NIL)
(list 0 3 106 T NIL)
(list 0 4 106 T NIL)
(list 0 5 106 T NIL)
(list 0 6 106 T NIL)
(list 0 7 106 T NIL)
(list 0 8 106 T NIL)
(list 0 9 106 T NIL)
(list 0 10 106 T NIL)
(list 0 11 106 T NIL)
(list 0 12 106 T NIL)
(list 0 13 106 T NIL)
;;; ...
   ) ;_ end of list
      )

Fred Tomke

Hi velasquez,

I don't believe that the size of the list will be the problem but the time needed to be displayed because OnPaint will be called very very very often. An I suggest you to keep the taskmanager (for the amount of memory) in one of your eyes.

Regards,
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]