Nevron.Interop.Win32 Namespace / NGdi32 Class / _SetPixelFormat Method


In This Topic
    _SetPixelFormat Method
    In This Topic
    Syntax
    'Declaration
     
    
    <System.Security.SuppressUnmanagedCodeSecurityAttribute()>
    Public Shared Function _SetPixelFormat( _
       ByVal deviceContext As System.IntPtr, _
       ByVal pixelFormat As System.Integer, _
       ByRef pixelFormatDescriptor As NGdi32.PIXELFORMATDESCRIPTOR _
    ) As System.Boolean
    'Usage
     
    
    Dim deviceContext As System.IntPtr
    Dim pixelFormat As System.Integer
    Dim pixelFormatDescriptor As NGdi32.PIXELFORMATDESCRIPTOR
    Dim value As System.Boolean
     
    value = NGdi32._SetPixelFormat(deviceContext, pixelFormat, pixelFormatDescriptor)
    [System.Security.SuppressUnmanagedCodeSecurity()]
    public static System.bool _SetPixelFormat( 
       System.IntPtr deviceContext,
       System.int pixelFormat,
       ref NGdi32.PIXELFORMATDESCRIPTOR pixelFormatDescriptor
    )

    Parameters

    deviceContext
    pixelFormat
    pixelFormatDescriptor
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also