Example #1
0
        public static void Test()
        {
            ImageArgb32 src = new ImageArgb32(5000, 6000);

            System.Drawing.Bitmap dst = new System.Drawing.Bitmap(5000, 6000, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
            CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); });
            CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); });
            CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); });
            CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); });
        }
Example #2
0
        public static void Test()
        {
            Bitmap img = new Bitmap(5000, 6000);

            CodeTimer.Time("Fill", 1, () => { img.Fill(1); });
            CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); });
            CodeTimer.Time("Fill", 1, () => { img.Fill(1); });
            CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); });
            CodeTimer.Time("Fill", 1, () => { img.Fill(1); });
            CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); });
            CodeTimer.Time("Fill", 1, () => { img.Fill(1); });
            CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); });
        }