Examples of SelectObject()


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

                                             srcLoc, 0, blend, User32.ULW_ALPHA);
                }
                finally {
                    user.ReleaseDC(null, screenDC);
                    if (memDC != null && oldBitmap != null) {
                        gdi.SelectObject(memDC, oldBitmap);
                    }
                }
            }
        }
View Full Code Here

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

                            WinGDI.DIB_RGB_COLORS,
                            ppbits, null, 0);
                        pbits = ppbits.getValue();
                        bitmapSize = new Dimension(ww, wh);
                    }
                    oldBitmap = gdi.SelectObject(memDC, hBitmap);
                    Raster raster = buf.getData();
                    int[] pixel = new int[4];
                    int[] bits = new int[w];
                    for (int row = 0; row < h; row++) {
                        for (int col = 0; col < w; col++) {
View Full Code Here

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

                    user.UpdateLayeredWindow(hWnd, screenDC, winLoc, winSize, memDC,
                                             srcLoc, 0, blend, WinUser.ULW_ALPHA);
                } finally {
                    user.ReleaseDC(null, screenDC);
                    if (memDC != null && oldBitmap != null) {
                        gdi.SelectObject(memDC, oldBitmap);
                    }
                }
            }
        }
View Full Code Here

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

                bmi.bmiHeader.biSizeImage = w * h * 4;
               
                PointerByReference ppbits = new PointerByReference();
                hBitmap = gdi.CreateDIBSection(memDC, bmi, WinGDI.DIB_RGB_COLORS,
                                               ppbits, null, 0);
                oldBitmap = gdi.SelectObject(memDC, hBitmap);
                Pointer pbits = ppbits.getValue();
               
                Raster raster = buf.getData();
                int[] pixel = new int[4];
                int[] bits = new int[w*h];
 
View Full Code Here

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

                                         0, blend, WinUser.ULW_ALPHA);
            }
            finally {
                user.ReleaseDC(null, screenDC);
                if (hBitmap != null) {
                    gdi.SelectObject(memDC, oldBitmap);
                    gdi.DeleteObject(hBitmap);
                }
                gdi.DeleteDC(memDC);
            }
        }
View Full Code Here

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

                            WinGDI.DIB_RGB_COLORS,
                            ppbits, null, 0);
                        pbits = ppbits.getValue();
                        bitmapSize = new Dimension(ww, wh);
                    }
                    oldBitmap = gdi.SelectObject(memDC, hBitmap);
                    Raster raster = buf.getData();
                    int[] pixel = new int[4];
                    int[] bits = new int[w];
                    for (int row = 0; row < h; row++) {
                        for (int col = 0; col < w; col++) {
View Full Code Here

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

                    user.UpdateLayeredWindow(hWnd, screenDC, winLoc, winSize, memDC,
                                             srcLoc, 0, blend, WinUser.ULW_ALPHA);
                } finally {
                    user.ReleaseDC(null, screenDC);
                    if (memDC != null && oldBitmap != null) {
                        gdi.SelectObject(memDC, oldBitmap);
                    }
                }
            }
        }
View Full Code Here

Examples of org.dom4j.Document.selectObject()

   
    public static Object xpath(Object object, String xpath) throws DocumentException {
        Object result;
        if (object instanceof String) {
            Document doc = DocumentHelper.parseText((String) object);
            result = doc.selectObject(xpath);
        }
       
        // Do JXPath on Bean
        else {
            if (object instanceof NativeJavaObject) {
View Full Code Here

Examples of org.dom4j.Document.selectObject()

        Element message = doc.getRootElement();
       
        String text = message.getStringValue();
        assertEquals("String value incorrect", "This should work", text.trim());
       
        String xpathText = (String) doc
                .selectObject("normalize-space(/message)");
        assertEquals("xpath value incorrect", "This should work", xpathText);
    }
   
    public void testBug894878() {
View Full Code Here

Examples of org.dom4j.Node.selectObject()

        ListMap map = new ArrayHashMap();

        for (Iterator i = resourceNode.selectNodes(ResourceBundleConstant.XPATH_RESOURCES)
                                      .iterator(); i.hasNext();) {
            Node   mapItemNode = (Node) i.next();
            Object mapKey = mapItemNode.selectObject(ResourceBundleConstant.XPATH_RESOURCE_ID);

            if (map.containsKey(id)) {
                throw new ResourceBundleCreateException(ResourceBundleConstant.RB_DUPLICATED_MAP_RESOURCE_KEY,
                                                        new Object[] {
                    mapKey,
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.