Examples of SetRectRgn()


Examples of com.sun.jna.examples.win32.GDI32.SetRectRgn()

                    User32 user = User32.INSTANCE;
                    HWND hWnd = getHWnd(w);
                    final HRGN result = gdi.CreateRectRgn(0, 0, 0, 0);
                    try {
                        if (raster == null) {
                            gdi.SetRectRgn(result, 0, 0, w.getWidth(), w.getHeight());
                        }
                        else {
                            final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
                            try {
                                RasterRangesUtils.outputOccupiedRanges(raster, new RasterRangesUtils.RangesOutput() {
View Full Code Here

Examples of com.sun.jna.examples.win32.GDI32.SetRectRgn()

                            final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
                            try {
                                RasterRangesUtils.outputOccupiedRanges(raster, new RasterRangesUtils.RangesOutput() {
                                    public boolean outputRange(int x, int y, int w, int h) {
                                        GDI32 gdi = GDI32.INSTANCE;
                                        gdi.SetRectRgn(tempRgn, x, y, x + w, y + h);
                                        return gdi.CombineRgn(result, result, tempRgn, GDI32.RGN_OR) != GDI32.ERROR;
                                    }
                                });
                            }
                            finally {
View Full Code Here

Examples of com.sun.jna.examples.win32.GDI32.SetRectRgn()

                final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
                try {
                    RasterRangesUtils.outputOccupiedRanges(raster, new RasterRangesUtils.RangesOutput() {
                        public boolean outputRange(int x, int y, int w, int h) {
                            GDI32 gdi = GDI32.INSTANCE;
                            gdi.SetRectRgn(tempRgn, x, y, x + w, y + h);
                            return gdi.CombineRgn(region, region, tempRgn, GDI32.RGN_OR) != GDI32.ERROR;
                        }
                    });
                }
                finally {
View Full Code Here

Examples of com.sun.jna.examples.win32.GDI32.SetRectRgn()

                final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
                try {
                    RasterRangesUtils.outputOccupiedRanges(raster, new RasterRangesUtils.RangesOutput() {
                        public boolean outputRange(int x, int y, int w, int h) {
                            GDI32 gdi = GDI32.INSTANCE;
                            gdi.SetRectRgn(tempRgn, x, y, x + w, y + h);
                            return gdi.CombineRgn(region, region, tempRgn, WinGDI.RGN_OR) != WinGDI.ERROR;
                        }
                    });
                }
                finally {
View Full Code Here

Examples of com.sun.jna.examples.win32.GDI32.SetRectRgn()

          User32 user = User32.INSTANCE;
          HWND hWnd = getHWnd(w);
          final HRGN result = gdi.CreateRectRgn(0, 0, 0, 0);
          try {
            if (rectangles == null) {
              gdi.SetRectRgn(result, 0, 0, w.getWidth(), w
                  .getHeight());
            } else {
              final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
              try {
                for (int i = 0; i < rectangles.length; i++) {
View Full Code Here

Examples of com.sun.jna.examples.win32.GDI32.SetRectRgn()

            } else {
              final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
              try {
                for (int i = 0; i < rectangles.length; i++) {
                  Rectangle rectangle = rectangles[i];
                  gdi.SetRectRgn(tempRgn, rectangle.x,
                      rectangle.y, rectangle.x
                      + rectangle.width,
                      rectangle.y + rectangle.height);
                  gdi.CombineRgn(result, result, tempRgn,
                      WinGDI.RGN_OR);
View Full Code Here

Examples of com.sun.jna.platform.win32.GDI32.SetRectRgn()

                final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
                try {
                    RasterRangesUtils.outputOccupiedRanges(raster, new RasterRangesUtils.RangesOutput() {
                        public boolean outputRange(int x, int y, int w, int h) {
                            GDI32 gdi = GDI32.INSTANCE;
                            gdi.SetRectRgn(tempRgn, x, y, x + w, y + h);
                            return gdi.CombineRgn(region, region, tempRgn, WinGDI.RGN_OR) != WinGDI.ERROR;
                        }
                    });
                }
                finally {
View Full Code Here

Examples of com.sun.jna.platform.win32.GDI32.SetRectRgn()

                final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0);
                try {
                    RasterRangesUtils.outputOccupiedRanges(raster, new RasterRangesUtils.RangesOutput() {
                        public boolean outputRange(int x, int y, int w, int h) {
                            GDI32 gdi = GDI32.INSTANCE;
                            gdi.SetRectRgn(tempRgn, x, y, x + w, y + h);
                            return gdi.CombineRgn(region, region, tempRgn, WinGDI.RGN_OR) != WinGDI.ERROR;
                        }
                    });
                }
                finally {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.