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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:30:48+00:00 2026-05-18T01:30:48+00:00

I have a question about the Bitmap class. If you want to set a

  • 0

I have a question about the Bitmap class. If you want to set a lot of pixels on the bitmap, then you can use the SetPixel method, but it’s very slow. There is a lot of documentation on how you can speed it up with the LockBits methodes etc, so i’ve created a method: SetFastPixelto speed it up a bit.

However, and I’m really confused by it: Why doesn’t microsoft change the implementation of SetPixel() to an implementation that’s faster? In other words, is there and advantage for using SetPixel instead of the LockBits method?

  • 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-18T01:30:48+00:00Added an answer on May 18, 2026 at 1:30 am

    Cases where SetFastPixel probably doesn’t work:

    • Monochrome devices (eight pixels packed into one byte)
    • Planar devices (16-color VGA cards have a strange memory layout and require hardware assistance)
    • Indexed palette devices (SetPixel handles the RGB to palette index mapping)
    • Printers (I’ve no idea how this would work via LockBits)
    • Multi-monitor configurations where each card has a different pixel format

    SetPixel is designed to handle all of the above, at the expense of being slow. If you’re willing to sacrifice some of the above points, or if you’re happy to handle them in your application, then you have the ability to draw images via LockBits.

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

Sidebar

Related Questions

Have a question about linux bash. I want to start a program and then
I have a question about this question . I posted a reply there but
I have a question about design winforms. Should I use, or not, group boxes
i have question about why should we use return in get,if dont use what
My question is about memory use and objects in actionscript 2. If I have
I have a question about drawBitmap. android.graphics.Canvas.drawBitmap(Bitmap bitmap, float left, float top, Paint paint)
I have a question about jQuery + Razor.. I want to build a javascript
I have question about NSView: Imagine a Custom View where the mouseDown, mouseDrag and
I have a question about using streams in .NET to load files from disk.
I have a question about best practices regarding how one should approach storing complex

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.