RegionPlus(HRGN hRgn) { GpRegion region = new GpRegion(); lastResult = NativeMethods.GdipCreateRegionHrgn(hRgn, out region); SetNativeRegion(region); }
RegionPlus() { GpRegion region = new GpRegion(); lastResult = NativeMethods.GdipCreateRegion(out region); SetNativeRegion(region); }
RegionPlus(GraphicsPath path) { GpRegion region = new GpRegion(); lastResult = NativeMethods.GdipCreateRegionPath(path.nativePath, out region); SetNativeRegion(region); }
RegionPlus(GpRect rect) { GpRegion region = new GpRegion(); lastResult = NativeMethods.GdipCreateRegionRectI(ref rect, out region); SetNativeRegion(region); }
Clone() { GpRegion region = new GpRegion(); SetStatus(NativeMethods.GdipCloneRegion(nativeRegion, out region)); return(new RegionPlus(region)); }
RegionPlus(byte[] regionData) { GpRegion region = new GpRegion(); lastResult = NativeMethods.GdipCreateRegionRgnData(regionData, regionData.Length, out region); SetNativeRegion(region); }
RegionPlus FromHRGN(HRGN hRgn) { GpRegion region = new GpRegion(); if (NativeMethods.GdipCreateRegionHrgn(hRgn, out region) == GpStatus.Ok) { RegionPlus newRegion = new RegionPlus(region); if (newRegion == null) { NativeMethods.GdipDeleteRegion(region); } return(newRegion); } else { return(null); } }
GdipSetEmpty(GpRegion region);
GdipSetInfinite(GpRegion region);
GdipGetRegionData(GpRegion region, byte[] buffer, uint bufferSize, out uint sizeFilled);
GdipIsVisibleRegionPoint(GpRegion region, float x, float y, GpGraphics graphics, out bool result);
GdipIsEqualRegion(GpRegion region, GpRegion region2, GpGraphics graphics, out bool result);
GdipGetRegionDataSize(GpRegion region, out uint bufferSize);
GdipCloneRegion(GpRegion region, out GpRegion cloneRegion);
GdipCombineRegionPath(GpRegion region, GpPath path, CombineMode combineMode);
GdipGetRegionBoundsI(GpRegion region, GpGraphics graphics, out GpRect rect);
void SetNativeRegion(GpRegion nativeRegion) { this.nativeRegion = nativeRegion; }
GdipTranslateRegionI(GpRegion region, int dx, int dy);
GdipTranslateRegion(GpRegion region, float dx, float dy);
GdipCombineRegionRegion(GpRegion region, GpRegion region2, CombineMode combineMode);
GdipDeleteRegion(GpRegion region);
GdipCreateRegionRgnData(byte[] regionData, int size, out GpRegion region);
RegionPlus(GpRegion nativeRegion) { SetNativeRegion(nativeRegion); }
GdipCombineRegionRectI(GpRegion region, ref GpRect rect, CombineMode combineMode);
GdipGetRegionHRgn(GpRegion region, GpGraphics graphics, out HRGN hRgn);
GdipCreateRegionHrgn(HRGN hRgn, out GpRegion region);
GdipIsEmptyRegion(GpRegion region, GpGraphics graphics, out bool result);
GdipIsInfiniteRegion(GpRegion region, GpGraphics graphics, out bool result);
GdipFillRegion(GpGraphics graphics, GpBrush brush, GpRegion region);
GdipCreateRegionPath(GpPath path, out GpRegion region);