P
Pawe³
Hi!
I have an ImageList object with one image added with VS Designer. Then,
within my code I'am trying to add some other image to the collection:
int i = imageList1.Images.Add (myImage, Color.White) ;
this throws OutOfMemoryException! imageList1 contains only one bitmap (32x32
24bit), image with the same size I wish to append, and White is selected as
the ImageList.TransparentColor.
When I use another variant of Add() method, everything works fine:
imageList1.Images.Add (myImage) ;
Why does it happen ?.. I did something wrong, or it just a CCL bug ?..
Paul
I have an ImageList object with one image added with VS Designer. Then,
within my code I'am trying to add some other image to the collection:
int i = imageList1.Images.Add (myImage, Color.White) ;
this throws OutOfMemoryException! imageList1 contains only one bitmap (32x32
24bit), image with the same size I wish to append, and White is selected as
the ImageList.TransparentColor.
When I use another variant of Add() method, everything works fine:
imageList1.Images.Add (myImage) ;
Why does it happen ?.. I did something wrong, or it just a CCL bug ?..
Paul