Esempio n. 1
0
        BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData)
        {
            Status status = GDIPlus.GdipBitmapLockBits(nativeObject, ref rect, flags, format, bitmapData);

            //NOTE: scan0 points to piece of memory allocated in the unmanaged space
            GDIPlus.CheckStatus(status);

            return(bitmapData);
        }