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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:59:10+00:00 2026-05-26T07:59:10+00:00

Firstly, is my logic about how much space this array will take up correct?

  • 0

Firstly, is my logic about how much space this array will take up correct?

bool[,] b = new bool[8192 /* 8 * 1024 = 1KB */, 20]; // 20KB

I wish to render a given section of a 2D array to the window. The array is of bools and represents a 2 color image. The image should take up the whole window and each pixel should be sharp\pixelated as opposed to there being interpolation\gradients between the pixels centers.

For example (there will ofc be more encapsulation than this):

draw(bool[,] b,
float top_left_x, float top_left_y, float width, float height,
float false_red, float false_green, float false_blue,
float true_red, float true_green, float true_blue)
{
    // what goes here?
}

Is there anything build into c#\XNA to do this efficiently?

  • 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-26T07:59:10+00:00Added an answer on May 26, 2026 at 7:59 am

    You could do the same thing as opposed here: How to draw 2D pixel-by-pixel in XNA?

    The only thing you have to do is check which color will get into your texture for if it is true or false.

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

Sidebar

Related Questions

Firstly apologies for the length of this question, and for asking about the Facebook
Firstly: I am totally a newbie for this kind of work. I have a
Firstly I know that there are many question and solutions to correct thread marshalling
Firstly, I do not have any malicious intent out of this question. I would
Firstly this is not a homework question. I am practicing my knowledge on java.
Firstly I would like to say that I am quite new to Spring (in
Firstly, I want to restrict this question to web development only. So this is
My app's main UI is in MainWindow.xaml. Firstly - what is causing this to
Firstly, I have migrated my CVS repository into SVN repository. I checked out this
Could you please explain me the logic of UNIX signal system: firstly it sends

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.