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

The Archive Base Latest Questions

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

I noticed that Color struct from System.Drawing represents color in ARGB color space. So

  • 0

I noticed that Color struct from System.Drawing represents color in ARGB color space. So there are some questions:

  • How to convert image beetween ARGB and YUV in c#? I found formulas describing RGB to YUV conversion. So what should I do with alpha channel?
  • Are there free/trial libraries that support different color spaces? Or how do I implement it myself in the best manner?
  • How do I represent ‘Bitmap’ as 2d array with ability to iterate over it? is Inheritance the only way to accomplish this?

That’s all yet)

Thanks!

  • 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-05-22T02:43:40+00:00Added an answer on May 22, 2026 at 2:43 am

    You cannot directly convert argb to YUV (without loss) cause YUV contains no alpha information.

    Depending on what you wanna do with the color after you have these possibilities:

    • you just cut the alpha and discard the transparency

    • you convert to a AYUV which contains
      also an alpha channel

    conversion between color spaces

    One possibility to convert a bitmap to a byte[] is to write it in a memorystream and read it bite wise.

    MemoryStream stream = new MemoryStream();
    bitmap.Save(stream, ImageFormat.Bmp);
    byte[] data = stream.ToArray();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed that there are a couple of similar questions and answers at SO
I noticed that there is one change about ASP.NET Routing. I cannot understand why
I noticed that the generic IEnumerator<T> inherits from IDisposable, but the non-generic interface IEnumerator
I've noticed that changing the background color of an android widget ( ex. Button
I noticed that when I'm loading a texture, it might change the current drawing
I just noticed that in some of the new VCL styles in Delphi XE2,
After finally getting down to upgrading to FF 3.5, I noticed that some of
I've noticed that old color movies have a certain look about them, a certain
I noticed that Windows's RichTextBox supports making the selected text any color. I'm trying
I noticed that WPF has the System.Windows.Media(.Imaging) namespaces that contain a lot of the

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.