[Mono-dev] Someone to review libgdiplus patches?

cs_eps christian.schmid at eps.ch
Mon Mar 28 01:58:58 EDT 2011


Simplest Test Case uses Bitmap.LockBits, since Lockbits makes a copy of the
image... and this is the killer for every application wanting to access
BitmapData.Scan0


[Test]
public void TestLockBits()
{
    Size size = new Size(640,480);
    Rectangle rect = new Rectangle(0, 0, size.Width, p_Image.Height);

    using (Bitmap bm = new Bitmap(size.Width, size.Height,
PixelFormat.Format32bppArgb))
    {
        for (int i=0; i<10000; ++i)
        {
            BitmapData data = p_Image.LockBits(rect, ImageLockMode.ReadOnly,
PixelFormat.Format32bppArgb);
        }
    }
}

--
View this message in context: http://mono.1490590.n4.nabble.com/Someone-to-review-libgdiplus-patches-tp3248208p3410839.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list