Exemple #1
0
 public override void Init()
 {
     Surface temp = new Surface("Data/intro.bmp");
     bg = temp.CreateResizedSurface(Video.Screen.Size);
     fader = new Surface(bg.Width, bg.Height,
                         bg.BitsPerPixel, bg.RedMask,
                         bg.GreenMask, bg.BlueMask,
                         bg.AlphaMask);
     fader.Alpha = 255;
     fader.Fill(System.Drawing.Color.Black);
     fader.AlphaBlending = true;
 }
Exemple #2
0
 public void SurfaceResize2()
 {
     Rectangle rectangle = new Rectangle(0, 0, 33, 33);
     Surface surface = new Surface(rectangle);
     surface = surface.CreateResizedSurface();
     Assert.AreEqual(64, surface.Height);
     Assert.AreEqual(64, surface.Width);
 }