Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "DeleteObject" in [All]

user32

.

public static extern bool DeleteObject(IntPtr hObject);

.

     DeleteObject(imgHandle);

.

public static extern bool DeleteObject(IntPtr hObject);

.

     DeleteObject(imgHandle);

.

        if (ii.hbmColor != IntPtr.Zero) DeleteObject(ii.hbmColor);

.

        if (ii.hbmMask != IntPtr.Zero) DeleteObject(ii.hbmMask);

.

    [DllImport("gdi32.dll", EntryPoint = "DeleteObject")]

.

    static extern IntPtr DeleteObject(IntPtr hDc);

.

                Win32.DeleteObject(hBitmap);

.

        public extern static Bool DeleteObject(IntPtr hObject);

Interfaces

.

    DeleteObject(hbitmap);

Constants

6: EMR_
.

        EMR_DELETEOBJECT           = 40,

gdi32

.

static extern bool DeleteObject(IntPtr hObject);

.

    DeleteObject(pNew);

.

static extern bool DeleteObject(IntPtr hObject);

.

After you're done, you should use DeleteObject to release resources.

.

If you call this and then exit the function, automatic garbage collection does not work and you get a memory leak. You will need the DeleteObject function (also in gdi32) to free the memory manually

.

Dont forget to call DeleteObject to free the pointer to the font (otherwise you get a nasty gdi leak)

.

    DeleteObject(SelectObject(pDC, oldpen));

.

        static extern bool DeleteObject(IntPtr hObject);

.

                DeleteObject(brush);

.

Please call DeleteObject to free up all system resources.

.

        static extern bool DeleteObject(IntPtr hObject);

.

                DeleteObject(brush);

.
Summary
The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
.

[DllImport("gdi32.dll", EntryPoint = "DeleteObject")]

.

public static extern bool DeleteObject([In] IntPtr hObject);

.

Private Shared Function DeleteObject(hObject As IntPtr)  As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Public Declare Function DeleteObject Lib "gdi32.dll" _

.

Call DeleteObject on a HBitmap object after using the GDI+ function:

.

FromHbitmap transfers a copy of the image bytes into returned Bitmap so it is important to call DeleteObject on the HBitmap to prevent two copies of the image from existing in the system.

.
Documentation
[DeleteObject] on MSDN
.

public static extern bool DeleteObject(IntPtr hObject);

.

    DeleteObject(vBrush);

.

        static extern bool DeleteObject(IntPtr hObject);

.

                DeleteObject(brush);

.

     DeleteObject(hFont);

.

Release the handle after usage with the method DeleteObject in gdi32.dll.

.

    private static extern bool DeleteObject(IntPtr hgdiobj);

.

            DeleteObject(fontHandle);

.

    GDI.DeleteObject(GDI.SelectObject(hdc, oldfnt));

.

    GDI.DeleteObject(GDI.SelectObject(hdc, oldfnt));

.

     DeleteObject(hFont);

.

static extern bool DeleteObject(IntPtr hdc);

.

      Win32::DeleteObject(hFont);

23: LineTo
.

    DeleteObject(SelectObject(pDC, oldpen));

.

    DeleteObject(SelectObject(pDC, oldpen));

.

    public static extern bool DeleteObject(IntPtr hObject);

.

        GDI32.DeleteObject(thePen);

.

        GDI32.DeleteObject(theBrush);

.

DeleteObject(hRegion);

.

    public static extern int DeleteObject(int hBitmap);

.

DeleteObject(hPen);

.

                DeleteObject(pNew);

.

        static extern bool DeleteObject(IntPtr hObject);

.

   public static extern bool DeleteObject(IntPtr objectHandle);

.

        DeleteObject(SelectObject(HDC, last_font));

.

    Private Shared Function DeleteObject(ByVal objectHandle As IntPtr) As Boolean

.

            DeleteObject(FontPtr)

Structures

.

    //     member is null, the destination process should use DeleteObject to delete

.

    '     member is null, the destination process should use DeleteObject to delete

opengl32

.

                Gdi.DeleteObject(disposeFontH);

kernel32

.

     FsctlDeleteObjectId = (EFileDevice.FileSystem << 16) | (40 << 2) | EMethod.Buffered | (0 << 14),


 
Access PInvoke.net directly from VS: