Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleFind the system's color depth (bits per pixel)
Keywordscolor, color depth, bits per pixel, bpp
CategoriesGraphics, Windows
 
Use the GetDeviceCaps API function with the BITSPIXEL flag.
 
Private Sub Form_Load()
    MsgBox "This system is using " & _
        Format$(GetDeviceCaps(hdc, BITSPIXEL)) & _
        "-bit color."
    Unload Me
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated