dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms ImageList.cs,1.


From: Richard Baumann <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms ImageList.cs,1.2,1.3
Date: Sun, 22 Jun 2003 00:49:54 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms
In directory subversions:/tmp/cvs-serv19286/System.Windows.Forms

Modified Files:
        ImageList.cs 
Log Message:
Fixed a couple of minor mistakes in ImageList.cs and implemented the Draw 
methods.


Index: ImageList.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/ImageList.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ImageList.cs        21 Jun 2003 22:00:03 -0000      1.2
--- ImageList.cs        22 Jun 2003 04:49:51 -0000      1.3
***************
*** 92,99 ****
                Draw(g,pt.X,pt.Y,index);
        }
!       public void Draw(Graphics g, int x, int y, int index) { /* TODO */ }
        public void Draw(Graphics g, int x, int y, int width, int height, int 
index)
        {
!               // TODO
        }
  #endif
--- 92,102 ----
                Draw(g,pt.X,pt.Y,index);
        }
!       public void Draw(Graphics g, int x, int y, int index)
!       {
!               g.DrawImage(images[index],x,y,imageSize.Width,imageSize.Height);
!       }
        public void Draw(Graphics g, int x, int y, int width, int height, int 
index)
        {
!               g.DrawImage(images[index],x,y,width,height);
        }
  #endif
***************
*** 170,173 ****
--- 173,177 ----
                                        throw new ArgumentNullException(/* TODO 
*/);
                                }
+                               ((Bitmap) 
value).MakeTransparent(owner.TransparentColor);
                                images[index] = value;
                        }
***************
*** 189,192 ****
--- 193,199 ----
                                throw new ArgumentException(/* TODO */);
                        }
+               #if !CONFIG_COMPACT_FORMS
+                       ((Bitmap) 
image).MakeTransparent(owner.TransparentColor);
+               #endif
                        images.Add(image);
                }
***************
*** 202,205 ****
--- 209,215 ----
                                throw new ArgumentException(/* TODO */);
                        }
+               #if !CONFIG_COMPACT_FORMS
+                       ((Bitmap) 
image).MakeTransparent(owner.TransparentColor);
+               #endif
                        images.Add(image);
                }
***************
*** 215,222 ****
                                throw new ArgumentException(/* TODO */);
                        }
!                       //if (The attempt to add the image failed.)
!                       //      throw new Exception("TODO");
!                       //      return -1; // lol
!                       owner.TransparentColor = transparentColor;
                        return images.Add(image);
                }
--- 225,229 ----
                                throw new ArgumentException(/* TODO */);
                        }
!                       ((Bitmap) image).MakeTransparent(transparentColor);
                        return images.Add(image);
                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]