GDI.DeleteObject(blitDC); GDI.DeleteObject(outputBitmap);
public void close() { if (hbm != null) { GDI32.INSTANCE.DeleteObject(hbm); hbm = null; } }
private void disposeBackingStore() { GDI32 gdi = GDI32.INSTANCE; if (hBitmap != null) { gdi.DeleteObject(hBitmap); hBitmap = null; } if (memDC != null) { gdi.DeleteDC(memDC); memDC = null; } } @Override
private void disposeBackingStore() { GDI32 gdi = GDI32.INSTANCE; if (hBitmap != null) { gdi.DeleteObject(hBitmap); hBitmap = null; } if (memDC != null) { gdi.DeleteDC(memDC); memDC = null; } } public void removeNotify() {
public void run() { GDI32 gdi = GDI32.INSTANCE; User32 user = User32.INSTANCE; HWND hWnd = getHWnd(w); try { user.SetWindowRgn(hWnd, hrgn, true); setForceHeavyweightPopups(getWindow(w), hrgn != null); } finally { gdi.DeleteObject(hrgn); } } });
@Override public void run() { GDI32 gdi = GDI32.INSTANCE; User32 user = User32.INSTANCE; HWND hWnd = getHWnd(w); try { user.SetWindowRgn(hWnd, hrgn, true); setForceHeavyweightPopups(getWindow(w), hrgn != null); } finally { gdi.DeleteObject(hrgn); } } });
public void close() { if (Pointer.nativeValue(getPointer()) != 0) { GDI32.INSTANCE.DeleteObject(this); setPointer(new Pointer(0)); } }
public void close() { if (Pointer.nativeValue(getPointer()) != 0) { GDI32.INSTANCE.DeleteObject(this); setPointer(new Pointer(0)); } } }
protected void setMask(final Component w, final Raster raster) { GDI32 gdi = GDI32.INSTANCE; final HRGN region = raster != null ? gdi.CreateRectRgn(0, 0, 0, 0) : null; if (region != null) { 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 { gdi.DeleteObject(tempRgn); } } setWindowRegion(w, region); } }
@Override protected void setMask(final Component w, final Raster raster) { GDI32 gdi = GDI32.INSTANCE; final HRGN region = raster != null ? gdi.CreateRectRgn(0, 0, 0, 0) : null; if (region != null) { final HRGN tempRgn = gdi.CreateRectRgn(0, 0, 0, 0); try { RasterRangesUtils.outputOccupiedRanges(raster, new RasterRangesUtils.RangesOutput() { @Override 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 { gdi.DeleteObject(tempRgn); } } setWindowRegion(w, region); }
if (iconInfo.hbmColor != null && iconInfo.hbmColor.getPointer() != Pointer.NULL) GDI32.INSTANCE.DeleteObject(iconInfo.hbmColor); if (iconInfo.hbmMask != null && iconInfo.hbmMask.getPointer() != Pointer.NULL) GDI32.INSTANCE.DeleteObject(iconInfo.hbmMask);
GDI.DeleteObject(blitDC); GDI.DeleteObject(outputBitmap);
gdi.DeleteObject(hBitmap); hBitmap = null;
gdi.DeleteObject(hBitmap); hBitmap = null;
if (!GDI32.INSTANCE.DeleteObject(hBitmap)) { Win32Exception ex = new Win32Exception(Native.getLastError()); if (we != null) {