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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:30:42+00:00 2026-05-30T11:30:42+00:00

I have the following symbol which is a ! written in C++: const UINT8

  • 0

I have the following symbol which is a ! written in C++:

const UINT8 ras[1][28] ={ {0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00} }; //'!'

Now I need to create this in C# as a symbol and print it on a console or image, how is that possible?

I know it is supposed to print a !. But how do I got from my array to !?

  • 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-30T11:30:43+00:00Added an answer on May 30, 2026 at 11:30 am

    This looks like a 16×14-pixel bitmap. If we take the bytes two by two, we get:

    0x00, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x00, 0x00,
    0x00, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x30, 0x00,
    0x00, 0x00
    

    Now, the binary pattern for the value 0x30 is 00110000, so it looks like an exclamation point with a 2×2-pixel dot, and a 2×8-pixel vertical part, like so (keeping only the left-most byte, since the right-most on each line is 0 or blank):

    00000000
    00110000
    00110000
    00000000
    00000000
    00110000
    00110000
    00110000
    00110000
    00110000
    00110000
    00110000
    00110000
    00000000
    

    Obviously, it’s also up-side down. Using the above information, you should be able to create e.g. a plain old Bitmap and initialize it so you get something you eventually display in C#. Of course, that sounds a bit round-about for this very simplistic image, but still.

    To initialize the Bitmap, you would do something like:

    byte[] input = new byte[] { 0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00 };
    
    glyph = new Bitmap(16, 14, System.Drawing.Imaging.Format1bppIndexed);
    for(int y = 0; y < glyph.Height; y++)
    {
      int input_y = (glyph.Height - 1) - y; // Flip it right side up.
      for(int x = 0; x < glyph.Width; x++)
      {
        bool on = input[2 * input_y + x / 8] & (0x80 >> (x % 8));
        glyph.SetPixel(x, y, on ? System.Drawing.Color.Black : System.Drawing.Color.White);
      }
    }
    

    Note that this code is very rough, I’m really not a C# developer. Treat it as pseudo-code.

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

Sidebar

Related Questions

I have the following error: LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
I have to parse the following data {ResultSet:{Query:microsec fin,Result: [{symbol:MICROSE_a.NS,name: MICROSEC FIN SERV LTD
I have the following code defining a Functor template and the function running_op, which
I have the following oracle statement which is giving compilation errors. v_percent_deceased_households := CASE
I have the following UISegmentedControl, which I want to be disabled: -(void)displayCheckMark { titleSegmentedControl
I have the following enum which represents a CardRank public enum CardRank { DEUCE('2'),
I have written the following syntax rule: (define-syntax match-rewriter (syntax-rules () ((_ (patt body)
Could some one please help me out on this I have the following json
I have the following code I use to simulate a live data feed which
I read through this article: Setting up a Symbol Server , which goes into

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.