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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:48:05+00:00 2026-05-11T21:48:05+00:00

Using C++ and .net I have a stream of data I want to display

  • 0

Using C++ and .net I have a stream of data I want to display as a scrolling image. Each time I get some new data I want to add it as a new row (128×1 pixels) and scroll the previous contents to one side.

My first stab at the problem involved rendering the entire data set each time I got a new row. This worked, but was far too slow, so I’m thinking it might make more sense to write to a buffer of some sort (a bitmap maybe?). The problem is that I can’t see how I can do that; Graphic objects allow you to draw quite happily, but I can’t see an obvious way to tell my control to use a Bitmap object as it’s buffer? Similarly, I can’t see a way to draw on a bitmap which I could then write to the screen.

This must be possible, but my google-foo has failed me thus far…

[Edit1] Just to clarify, the data is a spectrogram. The following image shows the sort of thing I was trying to achieve:

alt text http://www.geekops.co.uk/photos/0000-00-02%20(Forum%20images)/ScrollingGraphicsAlgorithmExplanation.png

The data I’m plotting comes in arrays of floats. There’s nothing to limit how many I’ll get, so I just want to forget data as it drops off the side of the plot.

I’m currently inheriting from a System::Windows::Forms::UserControl, but could switch to something else if there’s a better alterative?

  • 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-11T21:48:06+00:00Added an answer on May 11, 2026 at 9:48 pm

    Take a look at the ScrollWindow win32 method. You can scroll the existing data on the screen and then draw only the new data. This is very fast.

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

Sidebar

Related Questions

sending mail along with embedded image using asp.net I have already used following but
using .NET 3.5. I have a function I want to make multithreaded calls to.
I have created a Data Access Layer using .NET. Everywhere that I update a
I want to upload the image using the .NET webservices and that will be
I am using FileUpload control of asp.net and uploading the excel with some data.
So I have a textbox in C# (Using .NET forms) where I am going
I'm using protobuf-net v2 and have a class that inherits List that I wan't
What I have created a very simple asp.net web service using .NET framework 3.5,
I have a server-side code using .NET Remoting to establish the connection with client.
I have previously written user interfaces using .NET and Windows Forms. I'm about to

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.