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 8681007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:23:37+00:00 2026-06-12T21:23:37+00:00

If I create a bitmap with System.Drawing.Bitmap How can I specify what colour space

  • 0

If I create a bitmap with System.Drawing.Bitmap How can I specify what colour space the bitmap uses? Also how can I make sure the colour profile is embedded when I save the image as a jpeg or tiff?

  • 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-12T21:23:39+00:00Added an answer on June 12, 2026 at 9:23 pm

    I think I have found the answer to this.

    The colour space is recorded in the image’s PropertyItems

    It has an ID of 40961 which is it’s EXIF ID.

    So I would presume that adding an instance of this property to a newly created bitmap would give the image a colour space.

    There is a big problem though. System.Drawing.Imaging.PropertyItem class does not have a public constructor. So it is not possible to create a new PropertyItem. It says in the documentation that PropertyItems are only meant for accessing existing image metadata and not creating metadata. So what if I want to create an entirely new image and assign it a colour space with a PropertyItem?

    It also says in the documentation that if I wish to create a new PropertyItem that I should get an existing PropertyItem, clone it, edit the clone, and add the clone to PropertyItems. However if I am creating a new image there will not be any existing PropertyItems. So how am I supposed to add a PropertyItem that declares a colour space?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a PNG file from a System.Drawing.Bitmap with the colours defined
Someone can give me short explanation how to create bitmap runtime using GDI/GDI+ and
How can I convert a WPF WriteableBitmap object to a System.Drawing.Image? My WPF client
The only way I found so far is System.Drawing.Bitmap.GetPixel() , but Microsoft has warnings
I am writing some code to create a Bitmap, do some drawing and then
public static System.Drawing.Image GenerateGiftCard(String text, Font font, Color textColor) { System.Drawing.Image img = Bitmap.FromFile(@G:\xxx\images\gift-card.jpg);
I am trying to create an iPhone puzzle game, it uses a grid system
I create a bitmap from bytes coming via the web and when I downsample
I'm creating an Android application that requires me to create a bitmap of the
In my activity, I create a Bitmap object and then I need to launch

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.