예제 #1
0
        public unsafe bool TryGetRectangle(RECTANGLE *dest)
        {
            var success = RegionIsWhack(out var result);

            if (dest != null)
            {
                *dest = result;
            }
            return(success);
        }
예제 #2
0
 public unsafe bool Blit(IntPtr dest, int stride, int height, int offsetX, int offsetY, RECTANGLE *rect, REGN regn)
 {
     return(UnmanagedFunctionCall.ThisCall((IntPtr)FunctionNames.MBMP_Blit, NativeHandle.Address, dest, new IntPtr(stride), new IntPtr(height), new IntPtr(offsetX), new IntPtr(offsetY), new IntPtr(rect), regn?.NativeHandle.Address ?? IntPtr.Zero) != IntPtr.Zero);
 }