Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:22:14+00:00 2026-06-16T01:22:14+00:00

The PixelFormat enumeration from the System.Drawing.Imaging namespace has members like Format32bppArgb or Format8bppIndexed ,

  • 0

The PixelFormat enumeration from the System.Drawing.Imaging namespace has members like Format32bppArgb or Format8bppIndexed, that are displayed when calling its ToString method.

Do you know of a built-in or other method that converts PixelFormat values to strings that are more appropriate for display in a graphic program, like 24 BPP or 24bpp?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:22:15+00:00Added an answer on June 16, 2026 at 1:22 am

    Try something like this extension method I quickly threw together:

    public static string ToFancyString(this PixelFormat format)
    {
        switch (format)
        {
            case PixelFormat.Format16bppArgb1555:
                return "16bpp ARGB";
            case PixelFormat.Format16bppGrayScale:
                return "16bpp Gray";
            case PixelFormat.Format16bppRgb555:
                return "16bpp RGB";
            case PixelFormat.Format16bppRgb565:
                return "16bpp RGB";
            case PixelFormat.Format1bppIndexed:
                return "1bpp Indexed";
            case PixelFormat.Format24bppRgb:
                return "24bpp RGB";
            case PixelFormat.Format32bppArgb:
                return "32bpp ARGB";
            case PixelFormat.Format32bppPArgb:
                return "32bpp Premultiplied ARGB";
            case PixelFormat.Format32bppRgb:
                return "32bpp RGB";
            case PixelFormat.Format48bppRgb:
                return "48bpp RGB";
            case PixelFormat.Format4bppIndexed:
                return "4bpp Indexed";
            case PixelFormat.Format64bppArgb:
                return "64bpp ARGB";
            case PixelFormat.Format64bppPArgb:
                return "64bpp Premultiplied ARGB";
            case PixelFormat.Format8bppIndexed:
                return "8bpp Indexed";
            default:
                return format.ToString();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best way to get the System.Windows.Media.PixelFormats value equivalent to a System.Drawing.Imaging.PixelFormat
I need to convert a Bitmap from PixelFormat.Format32bppRgb to PixelFormat.Format32bppArgb . I was hoping
I try to get all byte values from a Bitmap(System.Drawing.Bitmap). Therefore I lock the
I'm building a System.Drawing.Bitmap in code from a byte array, and i'm not sure
I'm calling some code that uses the BitmapData class from .NET. I've hit something
I have a PNG image that has an unsupported bitmap graphics context pixel format.
Accord.NET PointsMarker.cs seems to support PixelFormat Format32bppArgb. Why does this catch an UnsupportedImageFormatException? private
I would like to clear the contents of the canvas after drawing certain things
This is my piece of code that i gathered from here . private unsafe
is there any alternative bitmap class, where PixelFormat.Format16bppGrayScale , or something like this, is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.