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

  • SEARCH
  • Home
  • 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 111353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:22:17+00:00 2026-05-11T02:22:17+00:00

bpp = bits per pixel, so 32bpp means 8/8/8/8 for R/G/B/A. Like .NET has

  • 0

bpp = bits per pixel, so 32bpp means 8/8/8/8 for R/G/B/A.

Like .NET has an enum for these ‘System.Drawing.Imaging.PixelFormat’.

Now once I have a Bitmap or Image object with my graphics, how would I save it to a file / what format would I use?

What image file format (JPEG/GIF/PNG) supports low bit-depths like 16bpp or 8bpp (instead of the usual 32bpp or 24bpp)

  • 1 1 Answer
  • 2 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. 2026-05-11T02:22:18+00:00Added an answer on May 11, 2026 at 2:22 am

    Try this:

    ImageCodecInfo pngCodec = ImageCodecInfo.GetImageEncoders().Where(codec => codec.FormatID.Equals(ImageFormat.Png.Guid)).FirstOrDefault(); if (pngCodec != null) {     EncoderParameters parameters = new EncoderParameters();     parameters.Param[0] = new EncoderParameter(Encoder.ColorDepth, 8);     myImage.Save(myStream, pngCodec, parameters); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The PixelFormat enumeration from the System.Drawing.Imaging namespace has members like Format32bppArgb or Format8bppIndexed ,
I have a memory buffer corresponding to my screen resolution (1280x800 at 24-bits-per-pixel) that
So i have reference numbers that look like this: -76527921 O-2323232323 BPP-76527921 EEFS-23232323 I
I'm trying to write an application that converts 48 bit-per-pixel PNG files to a
I have monochrome TIFF files (1 bpp) that I would like to write text
I need to open 16 bpp grayscale tiff image in C++ program. Trying to
In an embedded C app, I have a large image that I'd like to
How do I read the image color information for each pixel of PVRTC image?
class BPP { unsigned n; /* nº de instancias */ vector<string> nombre_instancia; /* nombre
This is the definition of my class: class BPP { unsigned n; /* nº

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.